railo.commons.io.log
Class LogConsole

java.lang.Object
  extended by railo.commons.io.log.LogConsole
All Implemented Interfaces:
Log

public final class LogConsole
extends Object
implements Log

log for Console


Field Summary
 
Fields inherited from interface railo.commons.io.log.Log
LEVEL_DEBUG, LEVEL_ERROR, LEVEL_FATAL, LEVEL_INFO, LEVEL_WARN
 
Constructor Summary
LogConsole(int logLevel, PrintWriter writer)
           
 
Method Summary
 void debug(String application, String message)
          log level debug
 void error(String application, String message)
          log level error
 void fatal(String application, String message)
          log level fatal
static LogConsole getInstance(Config config, int logLevel)
           
 int getLogLevel()
           
 void info(String application, String message)
          log level info
 void log(int level, String application, String message)
          log one line
 void setLogLevel(int level)
           
 void warn(String application, String message)
          log level warn
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogConsole

public LogConsole(int logLevel,
                  PrintWriter writer)
Method Detail

getInstance

public static LogConsole getInstance(Config config,
                                     int logLevel)

log

public void log(int level,
                String application,
                String message)
Description copied from interface: Log
log one line

Specified by:
log in interface Log
Parameters:
level - level to log (Log.LEVEL_DEBUG, Log.LEVEL_WARN, Log.LEVEL_ERROR)
application - application name
message - message to log
See Also:
Log.log(int, java.lang.String, java.lang.String)

info

public void info(String application,
                 String message)
Description copied from interface: Log
log level info

Specified by:
info in interface Log
Parameters:
application - application name
message - message to log
See Also:
Log.info(java.lang.String, java.lang.String)

debug

public void debug(String application,
                  String message)
Description copied from interface: Log
log level debug

Specified by:
debug in interface Log
Parameters:
application - application name
message - message to log
See Also:
Log.debug(java.lang.String, java.lang.String)

warn

public void warn(String application,
                 String message)
Description copied from interface: Log
log level warn

Specified by:
warn in interface Log
Parameters:
application - application name
message - message to log
See Also:
Log.warn(java.lang.String, java.lang.String)

error

public void error(String application,
                  String message)
Description copied from interface: Log
log level error

Specified by:
error in interface Log
Parameters:
application - application name
message - message to log
See Also:
Log.error(java.lang.String, java.lang.String)

fatal

public void fatal(String application,
                  String message)
Description copied from interface: Log
log level fatal

Specified by:
fatal in interface Log
Parameters:
application - application name
message - message to log
See Also:
Log.fatal(java.lang.String, java.lang.String)

getLogLevel

public int getLogLevel()
Specified by:
getLogLevel in interface Log
Returns:
returns the log level of the log
See Also:
Log.getLogLevel()

setLogLevel

public void setLogLevel(int level)
Specified by:
setLogLevel in interface Log
Parameters:
level - sets the log level of the log
See Also:
Log.setLogLevel(int)


Copyright © 2012 Railo