org.jagatoo.logging
Class ConsoleLog
java.lang.Object
org.jagatoo.logging.ConsoleLog
- All Implemented Interfaces:
- LogInterface
public class ConsoleLog
- extends java.lang.Object
- implements LogInterface
This class will write the messages to the console.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConsoleLog
public ConsoleLog(int channelFilter,
int logLevel)
ConsoleLog
public ConsoleLog(int logLevel)
ConsoleLog
public ConsoleLog()
setLogLevel
public final void setLogLevel(int logLevel)
getLogLevel
public final int getLogLevel()
- Specified by:
getLogLevel in interface LogInterface
setChannelFilter
public final void setChannelFilter(int filter)
getChannelFilter
public final int getChannelFilter()
- Specified by:
getChannelFilter in interface LogInterface
acceptsChannel
public final boolean acceptsChannel(LogChannel channel)
print
public void print(LogChannel channel,
int logLevel,
java.lang.String message)
-
- Specified by:
print in interface LogInterface
println
public void println(LogChannel channel,
int logLevel,
java.lang.String message)
-
- Specified by:
println in interface LogInterface
flush
public void flush()
-
- Specified by:
flush in interface LogInterface
close
public void close()
-
- Specified by:
close in interface LogInterface