|
PTLog API - 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jp.ne.dti.lares.foozy.ptlog.LogServer jp.ne.dti.lares.foozy.ptlog.EffectiveLogServer jp.ne.dti.lares.foozy.ptlog.ServiceProvider jp.ne.dti.lares.foozy.ptlog.logapi.LogAPIProvider
Log service provider for adaptation to JDK logging API.
There are two ways to use JDK logging API as underlying logging framework of PTLog.
One of them is
construction of LogTap
s with INSTANCE
.
Another way is
invocation of
setServer
with INSTANCE
on your LogTap
s
(or
setServer
on your LogDirector
).
This allows you to change configuration at runtime.
ATTENTION:
This class invokes constructor of base class
with:
DefaultTypeConverter
as converter
Level
of JDK logging API as typeClass
So, TypeConverter
,
which is registered
to this,
should convert from LogType
to Level
of JDK logging API.
Field Summary | |
static LogAPIProvider |
INSTANCE
Use this because constructor is "private". |
Method Summary | |
LogContext |
getContext(java.lang.Object subject)
Return LogAPILogContext . |
java.util.logging.Level |
getLevel(LogType type)
Select effective Level for specified type. |
Methods inherited from class jp.ne.dti.lares.foozy.ptlog.ServiceProvider |
addTypeConverter, addTypeConverters, clearTypeConverter, convertType, removeTypeConverter |
Methods inherited from class jp.ne.dti.lares.foozy.ptlog.EffectiveLogServer |
addServee_, getServees, removeServee_ |
Methods inherited from class jp.ne.dti.lares.foozy.ptlog.LogServer |
addServee, fireReconfigure, getSubjectName, removeServee |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final LogAPIProvider INSTANCE
Method Detail |
public final java.util.logging.Level getLevel(LogType type)
Level
for specified type.
public LogContext getContext(java.lang.Object subject)
LogAPILogContext
.
getContext
in class LogServer
subject
- of logging request.
LogAPILogContext
|
PTLog API - 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |