-
Notifications
You must be signed in to change notification settings - Fork 9
Logging over LazLogger
Michael Justin edited this page Feb 8, 2016
·
2 revisions
LazLogger supports dynamic enabling of loggers with command-line parameters. The name of the parameter must be defined by setting the ParamForEnabledLogGroups
parameter.
uses LazLogger, ...
...
DebugLogger.ParamForEnabledLogGroups := '--debug-enabled=';
With the LazLogger binding, all loggers are enabled by default, so you can disable them only. For example you can disable the two loggers logger1
and logger2
with:
HelloWorld.exe --debug-enabled=-logger1,-logger2
LazLogger also allows to direct output to a file:
HelloWorld.exe --debug-log=HelloWorld.log