Formatter is an abstract class
Raises an exception if called directly.
Define this method in a subclass to format data.
- level
- The integer level of the log event. Use LNAMES[level] to get the actual
level name.
- logger
- The logger that was invoked. Contains useful data. Please see Inheritance in
log4r/logger.rb for details.
- tracer
- The execution stack returned by caller at the log event. It is nil
if the invoked Logger's trace is false.
- data
- The object that was passed into the logging method.
|