|
JBoss STDIO 1.0.0.GA | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.Writer
org.jboss.stdio.AbstractLoggingWriter
org.jboss.stdio.LoggingWriter
public final class LoggingWriter
A writer which sends its data to a logger.
Field Summary |
---|
Fields inherited from class java.io.Writer |
---|
lock |
Constructor Summary | |
---|---|
LoggingWriter(Logger log,
Level level)
Construct a new instance. |
|
LoggingWriter(String category,
Level level)
Construct a new instance. |
|
LoggingWriter(String category,
String levelName)
Construct a new instance. |
Method Summary | |
---|---|
protected Level |
getLevel()
Get the level at which to log. |
protected Logger |
getLogger()
Get the logger to use. |
Methods inherited from class org.jboss.stdio.AbstractLoggingWriter |
---|
close, flush, write, write |
Methods inherited from class java.io.Writer |
---|
append, append, append, write, write, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LoggingWriter(String category, String levelName)
category
- the log category to uselevelName
- the name of the level at which to log messagespublic LoggingWriter(String category, Level level)
category
- the log category to uselevel
- the level at which to log messagespublic LoggingWriter(Logger log, Level level)
log
- the logger to uselevel
- the level at which to log messagesMethod Detail |
---|
protected Logger getLogger()
getLogger
in class AbstractLoggingWriter
protected Level getLevel()
getLevel
in class AbstractLoggingWriter
|
JBoss STDIO 1.0.0.GA | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |