Constructor and Description |
---|
WriterLog(VMDebugCore debugCore,
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(VMDebugCore debugCore, Writer writer, boolean flush)
debugCore
- 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 null
public void log(int level, String message, Object param)
Log
public void log(int level, String message)
Log
public void log(String message, Object param)
Log
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.