blob: 595e8b55720ced913415559e6757a31bd9dfd58b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
<?php
/**
* Write a log entry.
* This should be used to log user's activity.
*
* @param string $message
*/
function engelsystem_log($message)
{
$nick = "Guest";
$logger = app('logger');
$user = auth()->user();
if ($user) {
$nick = User_Nick_render($user);
}
$logger->info('{nick}: {message}', ['nick' => $nick, 'message' => $message]);
}
|