Reaction Home

com.zynaptic.reaction.util
Class ReactorLogSystemOut

java.lang.Object
  extended by com.zynaptic.reaction.util.ReactorLogSystemOut
All Implemented Interfaces:
ReactorLogTarget

public final class ReactorLogSystemOut
extends java.lang.Object
implements ReactorLogTarget

Provides a basic log service which prints all log messages generated by the reactor to the console.


Field Summary
 
Fields inherited from interface com.zynaptic.reaction.util.ReactorLogTarget
LOG_DEBUG, LOG_ERROR, LOG_INFO, LOG_WARNING
 
Constructor Summary
ReactorLogSystemOut()
           
 
Method Summary
 void log(int level, java.lang.String message)
          Logs a message string at the specified severity level.
 void log(int level, java.lang.String message, java.lang.Throwable exception)
          Logs message string and accompanying exception information at the specified severity level.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReactorLogSystemOut

public ReactorLogSystemOut()
Method Detail

log

public final void log(int level,
                      java.lang.String message)
Description copied from interface: ReactorLogTarget
Logs a message string at the specified severity level.

Specified by:
log in interface ReactorLogTarget
Parameters:
level - This is the severity level at which the message should be logged.
message - This is the message string which should be included in the log file.

log

public final void log(int level,
                      java.lang.String message,
                      java.lang.Throwable exception)
Description copied from interface: ReactorLogTarget
Logs message string and accompanying exception information at the specified severity level.

Specified by:
log in interface ReactorLogTarget
Parameters:
level - This is the severity level at which the message should be logged.
message - This is the message string which should be included in the log file.
exception - This is the exception which should be logged with the accompanying message.

Reaction Home