railo.commons.io.log
Class LogDataSource

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

public final class LogDataSource
extends Object
implements Log

Datasource output logger TODO impl


Field Summary
 
Fields inherited from interface railo.commons.io.log.Log
LEVEL_DEBUG, LEVEL_ERROR, LEVEL_FATAL, LEVEL_INFO, LEVEL_WARN
 
Constructor Summary
LogDataSource(PageContext pc, int logLevel, ConfigImpl config, DataSource datasource, String username, String password, String table)
          Constructor of the class
 
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
 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

LogDataSource

public LogDataSource(PageContext pc,
                     int logLevel,
                     ConfigImpl config,
                     DataSource datasource,
                     String username,
                     String password,
                     String table)
Constructor of the class

Parameters:
config -
datasource -
username -
password -
table -
Throws:
PageException
Method Detail

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

getLogLevel

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

setLogLevel

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

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

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

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

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

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


Copyright © 2012 Railo