From a7d202e5ffe2cc2c2750004846b20b603fca5066 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Mon, 24 Aug 2020 18:03:50 +0200 Subject: [PATCH] LScli: add --trace parameter --- src/includes/class/class.LScli.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/includes/class/class.LScli.php b/src/includes/class/class.LScli.php index 2824713c..14ee15df 100644 --- a/src/includes/class/class.LScli.php +++ b/src/includes/class/class.LScli.php @@ -92,6 +92,7 @@ class LScli extends LSlog_staticLoggerClass { echo " -q|--quiet Quiet mode: nothing log on console (but keep other logging handler)\n"; echo " -d|--debug Debug mode (set log level to DEBUG, default: WARNING)\n"; echo " -v|--verbose Verbose mode (set log level to INFO, default: WARNING)\n"; + echo " --trace Trace mode (set log level to TRACE, default: WARNING)\n"; echo " -C|--console Log on console with same log level as other handlers (otherwise, log only errors)\n"; echo " -S|--ldap-server Connect to a specific LDAP server: you could specify a LDAP\n"; echo " server by its declaration order in configuration (default:\n"; @@ -160,6 +161,9 @@ class LScli extends LSlog_staticLoggerClass { case '--verbose': $log_level = 'INFO'; break; + case '--trace': + $log_level = 'TRACE'; + break; case '-q': case '--quiet': $quiet = true; @@ -398,6 +402,7 @@ class LScli extends LSlog_staticLoggerClass { '-h', '--help', '-d', '--debug', '-v', '--verbose', + '--trace', '-q', '--quiet', '-C', '--console', '-S', '--ldap-server',