org.jagatoo.logging
Class ConsoleLog

java.lang.Object
  extended by 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.


Constructor Summary
ConsoleLog()
           
ConsoleLog(int logLevel)
           
ConsoleLog(int channelFilter, int logLevel)
           
 
Method Summary
 boolean acceptsChannel(LogChannel channel)
           
 void close()
          
 void flush()
          
 int getChannelFilter()
           
 int getLogLevel()
           
 void print(LogChannel channel, int logLevel, java.lang.String message)
          
 void println(LogChannel channel, int logLevel, java.lang.String message)
          
 void setChannelFilter(int filter)
           
 void setLogLevel(int logLevel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsoleLog

public ConsoleLog(int channelFilter,
                  int logLevel)

ConsoleLog

public ConsoleLog(int logLevel)

ConsoleLog

public ConsoleLog()
Method Detail

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