railo.commons.io.log
Class LogAndSourceImpl

java.lang.Object
  extended by railo.commons.io.log.LogAndSourceImpl
All Implemented Interfaces:
Log, LogAndSource

public final class LogAndSourceImpl
extends Object
implements LogAndSource


Field Summary
 
Fields inherited from interface railo.commons.io.log.Log
LEVEL_DEBUG, LEVEL_ERROR, LEVEL_FATAL, LEVEL_INFO, LEVEL_WARN
 
Constructor Summary
LogAndSourceImpl(Log log, String source)
           
 
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
 Log getLog()
           
 int getLogLevel()
           
 String getSource()
           
 void info(String application, String message)
          log level info
 void log(int level, String application, String message)
          log one line
 void setLogLevel(int level)
           
 String toString()
           
 void warn(String application, String message)
          log level warn
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LogAndSourceImpl

public LogAndSourceImpl(Log log,
                        String source)
Parameters:
log -
source -
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
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

getLog

public Log getLog()
Specified by:
getLog in interface LogAndSource
Returns:
Returns the log.
See Also:
LogAndSource.getLog()

getSource

public String getSource()
Specified by:
getSource in interface LogAndSource
Returns:
Returns the source.
See Also:
LogAndSource.getSource()

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)

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2012 Railo