public class WriterLog extends Object implements Log
Writer.| Constructor and Description |
|---|
WriterLog(Writer writer)
Constructs a log for the given writer object.
|
WriterLog(Writer writer,
boolean flush)
Constructs a log for the given writer object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
log(int level,
String message)
Logs a message at the specified logging level.
|
void |
log(int level,
String message,
Object param)
Logs a message with additional parameter at the specified logging level.
|
void |
log(String message)
Logs a message.
|
void |
log(String message,
Object param)
Logs a message with additional parameter.
|
public WriterLog(Writer writer)
writer - the writer object to receive the log record dataIllegalArgumentException - if the passed writer is nullpublic WriterLog(Writer writer, boolean flush)
writer - the writer object to receive the log record dataflush - if true, the writer gets flushed with every
record logged. If set to false, the flushing
behavior is dependent on the writer implementation usedIllegalArgumentException - if the passed writer is nullpublic void log(int level,
String message,
Object param)
Logpublic void log(int level,
String message)
Logpublic void log(String message, Object param)
LogCopyright © 2008, 2018 Borland Software Corporation and others. All Rights Reserved.