dk.rode.thesis.meta.log
Class NullLog
java.lang.Object
dk.rode.thesis.meta.log.AbstractLog
dk.rode.thesis.meta.log.NullLog
- All Implemented Interfaces:
- Log
public class NullLog
- extends AbstractLog
- implements Log
A null log discards all logged messages regardless
if active or not.
- Author:
- Gunni Rode / rode.dk
Constructor Summary |
NullLog(Class<?> clazz)
Constructor, which creates this log as inactive. |
Method Summary |
protected void |
log(Object... messages)
Performs the actual logging of the messages supplied
as messages with no new line postfixed. |
Methods inherited from class dk.rode.thesis.meta.log.AbstractLog |
error, format, getLineNumber, getPrefix, getPrefix, heading, isActive, print, print, println, println, setActive, toString, warn |
Methods inherited from interface dk.rode.thesis.meta.log.Log |
error, getLineNumber, getPrefix, heading, isActive, print, print, println, println, setActive, warn |
NullLog
NullLog(Class<?> clazz)
- Constructor, which creates this log as inactive.
- Parameters:
clazz
- The class this log is associated with, if any;
can be null.
log
protected void log(Object... messages)
- Description copied from class:
AbstractLog
- Performs the actual logging of the messages supplied
as
messages
with no new line postfixed.
All messages part are assumed to have a meaningful
toString()
representation and are not null,
and there is no need for explicit formatting.
- Specified by:
log
in class AbstractLog
- Parameters:
messages
- The messages to log; never null.
Feel free to use and/or modify the Java 6 source code developed for this thesis AT YOUR OWN RISK, but note that the source code comes WITHOUT ANY — and I do mean WITHOUT ANY — form of warranty WHAT SO EVER!
The original thesis and source code are available at rode.dk/thesis.