...
SffLog | Log4j Configured | Result | Comments |
---|---|---|---|
sff.log=disabled,silent | YES | No Logs |
|
sff.log=enabled,silent | YES; sff.log.level="INFO" | Only INFO Level log statements as specified in log4j appender | Absolutely no log file at all |
sff.log=enabled,loud | YES; sff.log.level="INFO" | INFO, ERROR and WARN statements are printed in log | Note that sff.log.level is passed into rootLogger value of Log4j configurationAdmin |
sff.log=enabled,loud | YES; sff.log.level="DEBUG" | INFO, ERROR, WARN, DEBUG statements are printed in log | |
sff.log=enabled,loud sff.log.trace=enabled | YES; sff.log.level="TRACE" | Trace will be enabled; Trace allows you to view Protocol level details for example | This is how trace can be enabled. |
Logging Cost
- Note that Log statements that has Template Processing (TP) in message will be evaluated independent of the level.
- Note the only TP will be processed but Strings will NOT be generated if level is not enabled.
- There is a potential to optimize not to perform TP based on level as well. (Enhancement)
Broadcast Log Message
A-Stack allows users to provide facet id on which all the log messages can be broadcast.
...