This tool facilitates logging through
SLF4J.
SETUP: In order to use this class, you will need to place these in your classpath:
- slf4j-api-x.x.x.jar
- A SLF4J binding jar, such as:
- Simple implementation: slf4j-simple-x.x.x.jar
- Log4J: slf4j-log4j12-x.x.x.jar, and proper configuration.
- Logback: logback-core-x.x.x.jar, logback-classic.jar, and proper configuration.
NOTE:
The FATAL log level is missing from SLF4J, so this implementation will call
Logger.error(org.slf4j.Marker, String) with a "FATAL" marker.
WARNING: Make sure that your DOF.Log level (specified through
DOF.Log#addListener(DOF.Log.Level, DOF.Log.Listener)) is the same as the level
configured in your SLF4J binding. Otherwise, the actual messages logged will be limited to the more
restrictive of
the two levels. Also, if the two levels are not the same, the performance may suffer. For example, if the DOF.Log level
is TRACE, and the SLF4J binding's level is INFO, then the JOAL code will waste time concatenating log messages for all levels,
but the TRACE and DEBUG levels will never make it to the log.