|
PTLog API - 1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjp.ne.dti.lares.foozy.ptlog.log4j.DefaultTypeConverter
Default implementation for Log4j.
This converts:
FatalLogType
to Level.FATAL
ErrorLogType
to Level.ERROR
WarnLogType
to Level.WARN
InfoLogType
to Level.INFO
ConfigLogType
to Level.INFO
DumpLogType
to Level.DEBUG
TraceLogType
to Level.TRACE
and the other types are converted to
Level.ALL.
Register your custom
TypeConverter
at Log4jProvider.INSTANCE,
if you want to override above conversion.
| Field Summary | |
static DefaultTypeConverter |
INSTANCE
Convenience to use this class without construction. |
| Constructor Summary | |
DefaultTypeConverter()
Constructor. |
|
| Method Summary | |
java.lang.Object |
convert(LogType type)
Convert from type to Level.
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final DefaultTypeConverter INSTANCE
| Constructor Detail |
public DefaultTypeConverter()
| Method Detail |
public java.lang.Object convert(LogType type)
Level.
This returns Level.DEBUG,
if there are no conversion entries for specified type.
convert in interface TypeConvertertype - to be converted.
|
PTLog API - 1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||