de.stueckseln.buildtools.utils
Class SimpleLogger
java.lang.Object
de.stueckseln.buildtools.utils.SimpleLogger
- All Implemented Interfaces:
- Logger
public class SimpleLogger
- extends java.lang.Object
- implements Logger
Simple logger implementation
- Author:
- Thomas Lehmann
Field Summary |
protected int |
logLevel
|
protected java.io.OutputStream |
os
|
protected java.io.OutputStreamWriter |
osw
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logLevel
protected int logLevel
os
protected java.io.OutputStream os
osw
protected java.io.OutputStreamWriter osw
SimpleLogger
public SimpleLogger()
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
log
protected void log(java.lang.String str,
int level)
debug
public final Logger debug(java.lang.String str)
- Specified by:
debug
in interface Logger
error
public final Logger error(java.lang.String str)
- Specified by:
error
in interface Logger
fatal
public final Logger fatal(java.lang.String str)
- Specified by:
fatal
in interface Logger
info
public final Logger info(java.lang.String str)
- Specified by:
info
in interface Logger
warning
public final Logger warning(java.lang.String str)
- Specified by:
warning
in interface Logger
setLogLevel
public final Logger setLogLevel(int level)
- Specified by:
setLogLevel
in interface Logger
getLogLevel
public int getLogLevel()
- Specified by:
getLogLevel
in interface Logger
setOutputStream
public Logger setOutputStream(java.io.OutputStream os)
- Specified by:
setOutputStream
in interface Logger
getOutputStream
public java.io.OutputStream getOutputStream()