org.x4juli.formatter.pattern
Class ClassNamePatternConverter
java.lang.Object
org.x4juli.global.components.AbstractComponent
org.x4juli.formatter.pattern.PatternConverter
org.x4juli.formatter.pattern.LogRecordPatternConverter
org.x4juli.formatter.pattern.NamePatternConverter
org.x4juli.formatter.pattern.ClassNamePatternConverter
- All Implemented Interfaces:
- Component
- public class ClassNamePatternConverter
- extends NamePatternConverter
Formats the class name of the site of the logging request.
The information is obtained by the originally provided one.
Logging API as a whole was originally done for Apache log4j. Juli is a
port of main parts of that to complete the Java Logging
APIs. All credits for initial idea, design, implementation,
documentation belong to the log4j crew. This
file was originally published by Ceki Gülcü. Please use
exclusively the appropriate mailing lists for questions, remarks and
contribution.
- Since:
- 0.5
- Author:
- Boris Unckel
- See Also:
LogRecord.getSourceClassName()
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ClassNamePatternConverter
private ClassNamePatternConverter(java.lang.String[] options)
- Private constructor.
- Parameters:
options - may be null.- Since:
- 0.5
newInstance
public static ClassNamePatternConverter newInstance(java.lang.String[] options)
- Gets an instance of ClassNamePatternConverter.
- Parameters:
options - options, may be null.
- Returns:
- instance of pattern converter.
- Since:
- 0.5
format
public void format(ExtendedLogRecord record,
java.lang.StringBuffer toAppendTo)
- Formats an event into a string buffer.
- Specified by:
format in class LogRecordPatternConverter
- Parameters:
record - to format, may not be null.toAppendTo - string buffer to which the formatted event will be
appended. May not be null.- Since:
- 0.5
${license_html}