|
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.logapi.DefaultTypeConverter
Default implementation for JDK logging API.
This converts:
FatalLogType
to Level.SEVERE
ErrorLogType
to Level.SEVERE
WarnLogType
to Level.WARNING
InfoLogType
to Level.INFO
ConfigLogType
to Level.CONFIG
DumpLogType
to Level.FINE
TraceLogType
to Level.FINER
and the other types are converted to
Level.FINEST.
Register your custom
TypeConverter
at LogAPIProvider.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 | |||||||||