|
Enhydra 5.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.lutris.logging.StandardLogChannel
Standard implementation of a channel associated with a logging facility. All messages for the facility are written using a channel. Care is take to avoid synchronization when possible for performance reasons.
LogChannel
,
StandardLogger
Constructor Summary | |
protected |
StandardLogChannel(java.lang.String chanFacility,
StandardLogger loggerObj)
Construct a new log channel. |
Method Summary | |
int |
getLevel(java.lang.String level)
Convert a symbolic level to an integer identifier. |
LogWriter |
getLogWriter(int level)
|
LogWriter |
getLogWriter(java.lang.String level)
|
boolean |
isEnabled(int level)
Determine if logging is enabled for the specified level. |
boolean |
isEnabled(java.lang.String level)
Determine if logging is enabled for the specified level. |
void |
write(int level,
java.lang.String msg)
Write a string to the log file. |
void |
write(int level,
java.lang.String msg,
java.lang.Throwable throwable)
Write a string and exception to the log file. |
void |
write(java.lang.String level,
java.lang.String msg)
Write a string to the log file. |
void |
write(java.lang.String level,
java.lang.String msg,
java.lang.Throwable throwable)
Write a string and exception to the log file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected StandardLogChannel(java.lang.String chanFacility, StandardLogger loggerObj)
chanFacility
- The facility that the channel is associate with.loggerObj
- The logging object that this channel will be associated
with.Method Detail |
public int getLevel(java.lang.String level)
LogChannel
getLevel
in interface LogChannel
level
- Symbolic level to convert
LogChannel.getLevel
public LogWriter getLogWriter(java.lang.String level)
LogChannel.getLogWriter#String
public LogWriter getLogWriter(int level)
LogChannel.getLogWriter#int
public boolean isEnabled(int level)
LogChannel
isEnabled
in interface LogChannel
level
- Numeric level that is to be checked.
true
if enabled, false
if not
enabled.LogChannel.isEnabled
public boolean isEnabled(java.lang.String level)
LogChannel
isEnabled
in interface LogChannel
level
- Symbolic level that is to be checked.
true
if enabled, false
if not
enabled.LogChannel.isEnabled
public void write(int level, java.lang.String msg)
LogChannel
write
in interface LogChannel
level
- Numeric level the message is associated with.msg
- The message to log.LogChannel.write
public void write(java.lang.String level, java.lang.String msg)
LogChannel
write
in interface LogChannel
level
- Symbolic level the message is associated with.msg
- The message to log.LogChannel.write
public void write(int level, java.lang.String msg, java.lang.Throwable throwable)
LogChannel
write
in interface LogChannel
level
- Numeric level the message is associated with.msg
- The message to log.throwable
- Exception or error to log.LogChannel.write
public void write(java.lang.String level, java.lang.String msg, java.lang.Throwable throwable)
LogChannel
write
in interface LogChannel
level
- Symbolic level the message is associated with.msg
- The message to log.throwable
- Exception or error to log.LogChannel.write
|
Enhydra 5.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |