Installation guide
Sms4Domino Help
- 115 -
Using multiple appenders
Using multiple appendersUsing multiple appenders
Using multiple appenders
When running Sms4Domino as a server addin it may be sufficient to use one ConsoleAppender.
All historical logging will be stored in log .nsf automatically.
However, when Sms4Domino runs as a standalone program, you may want to use a
ConsoleAppender and a FileAppender. This is accomplished by specifying more than one
appender for the rootLogger
log4
j
.rootLogger=INFO, console1, file1
The level of logging (INFO in the above example) is always the same for all specified appenders.
Should it be required to have a different level of logging for the console and file appenders you
could specify the most verbose level of logging for the rootLogger and then filter the logging at the
appender level.
In following example we would like DEBUG level logging to a file and INFO level logging to the
console. This is achieved by specifying the Threshold parameter for the least verbose appender
log4
j
.rootLogger=DEBUG, console1, file1
log4
j
.appender.console1.Threshold=INFO