summaryrefslogtreecommitdiff
path: root/includes/sys_log.php
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2017-09-19 19:33:24 +0200
committerIgor Scheller <igor.scheller@igorshp.de>2017-09-19 19:45:02 +0200
commite6ed8a30171b86b452cec21a283373fc14dd5330 (patch)
treeac50aa8118686421cce0e5970657095d3a2fde73 /includes/sys_log.php
parentb3b65743cdc534f7632c8e04e80d3489eec9677c (diff)
Changed LogEntries table: Use log level instead of nick name
Diffstat (limited to 'includes/sys_log.php')
-rw-r--r--includes/sys_log.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/includes/sys_log.php b/includes/sys_log.php
index c4ef890e..513586e6 100644
--- a/includes/sys_log.php
+++ b/includes/sys_log.php
@@ -9,10 +9,12 @@
function engelsystem_log($message)
{
global $user;
-
$nick = "Guest";
+ $logger = app('logger');
+
if (isset($user)) {
$nick = User_Nick_render($user);
}
- LogEntry_create($nick, $message);
+
+ $logger->info('{nick}: {message}', ['nick' => $nick, 'message' => $message]);
}