Package org.eclipse.m2m.qvt.oml.util
Class WriterLog
- java.lang.Object
-
- org.eclipse.m2m.qvt.oml.util.WriterLog
-
- All Implemented Interfaces:
Log
- Direct Known Subclasses:
StringBufferLog
public class WriterLog extends Object implements Log
A basic logger backed-up withWriter.- Since:
- 2.0
- Author:
- dvorak
- Interface is not intended to be extended by clients.
- This class is not intended to be subclassed by clients.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidlog(int level, String message)Logs a message at the specified logging level.voidlog(int level, String message, Object param)Logs a message with additional parameter at the specified logging level.voidlog(String message)Logs a message.voidlog(String message, Object param)Logs a message with additional parameter.
-
-
-
Constructor Detail
-
WriterLog
public WriterLog(Writer writer)
Constructs a log for the given writer object.- Parameters:
writer- the writer object to receive the log record data- Throws:
IllegalArgumentException- if the passedwriterisnull
-
WriterLog
public WriterLog(Writer writer, boolean flush)
Constructs a log for the given writer object.- Parameters:
writer- the writer object to receive the log record dataflush- iftrue, the writer gets flushed with every record logged. If set tofalse, the flushing behavior is dependent on the writer implementation used- Throws:
IllegalArgumentException- if the passedwriterisnull- Since:
- 3.0
-
-
Method Detail
-
log
public void log(int level, String message, Object param)Description copied from interface:LogLogs a message with additional parameter at the specified logging level.
-
log
public void log(int level, String message)Description copied from interface:LogLogs a message at the specified logging level.
-
log
public void log(String message, Object param)
Description copied from interface:LogLogs a message with additional parameter.
-
-