logging: add loglevel to syslog output

This commit is contained in:
Daniel Reichelt
2016-02-16 20:19:22 +01:00
parent 2fb091939f
commit a68effe4e7
3 changed files with 48 additions and 27 deletions

View File

@@ -114,9 +114,9 @@ class SysLogger extends AbstractLogger {
if ($text != null
&& $text != ''
) {
syslog((int)$type, "[" . ucfirst($_action) . " Action " . $name . "] " . $text);
syslog((int)$type, "[" . ucfirst($_action) . " Action " . $name . "] [".getLogLevelDesc($type)."] " . $text);
} else {
syslog((int)$type, "[" . ucfirst($_action) . " Action " . $name . "] No text given!!! Check scripts!");
syslog((int)$type, "[" . ucfirst($_action) . " Action " . $name . "] [".getLogLevelDesc($type)."] No text given!!! Check scripts!");
}
closelog();