|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.ocl.examples.debug.vm.utils.WriterLog
public class WriterLog
A basic logger backed-up with Writer
.
Field Summary | |
---|---|
protected VMDebugCore |
debugCore
|
Fields inherited from interface org.eclipse.ocl.examples.debug.vm.utils.Log |
---|
NULL_LOG |
Constructor Summary | |
---|---|
WriterLog(VMDebugCore debugCore,
java.io.Writer writer,
boolean flush)
Constructs a log for the given writer object. |
Method Summary | |
---|---|
protected java.io.Writer |
getWriter()
|
void |
log(int level,
java.lang.String message)
Logs a message at the specified logging level. |
void |
log(int level,
java.lang.String message,
java.lang.Object param)
Logs a message with additional parameter at the specified logging level. |
void |
log(java.lang.String message)
Logs a message. |
void |
log(java.lang.String message,
java.lang.Object param)
Logs a message with additional parameter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@NonNull protected final VMDebugCore debugCore
Constructor Detail |
---|
public WriterLog(@NonNull VMDebugCore debugCore, @NonNull java.io.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 used
java.lang.IllegalArgumentException
- if the passed writer
is null
Method Detail |
---|
protected final java.io.Writer getWriter()
public void log(int level, java.lang.String message, java.lang.Object param)
Log
log
in interface Log
level
- the level value to which the resulting log record should applymessage
- the textual message to be loggedparam
- the parameter object to the messagepublic void log(int level, java.lang.String message)
Log
log
in interface Log
level
- the level value to which the resulting log record should applymessage
- the textual message to be loggedpublic void log(java.lang.String message, java.lang.Object param)
Log
log
in interface Log
message
- the textual message to be loggedparam
- the parameter object to the messagepublic void log(java.lang.String message)
Log
log
in interface Log
message
- the textual message to be logged
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |