public final class LoggingWriter extends AbstractLoggingWriter
| Modifier and Type | Field and Description |
|---|---|
private java.util.logging.Level |
level |
private java.util.logging.Logger |
log |
| Constructor and Description |
|---|
LoggingWriter(java.util.logging.Logger log,
java.util.logging.Level level)
Construct a new instance.
|
LoggingWriter(java.lang.String category,
java.util.logging.Level level)
Construct a new instance.
|
LoggingWriter(java.lang.String category,
java.lang.String levelName)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.util.logging.Level |
getLevel()
Get the level at which to log.
|
protected java.util.logging.Logger |
getLogger()
Get the logger to use.
|
close, flush, write, writeprivate final java.util.logging.Logger log
private final java.util.logging.Level level
public LoggingWriter(java.lang.String category,
java.lang.String levelName)
category - the log category to uselevelName - the name of the level at which to log messagespublic LoggingWriter(java.lang.String category,
java.util.logging.Level level)
category - the log category to uselevel - the level at which to log messagespublic LoggingWriter(java.util.logging.Logger log,
java.util.logging.Level level)
log - the logger to uselevel - the level at which to log messagesprotected java.util.logging.Logger getLogger()
getLogger in class AbstractLoggingWriterprotected java.util.logging.Level getLevel()
getLevel in class AbstractLoggingWriter