LScli: add --trace parameter

This commit is contained in:
Benjamin Renard 2020-08-24 18:03:50 +02:00
parent 8a1eefc5e3
commit a7d202e5ff

View file

@ -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',