org.apache.qpid.server.logging
Class SystemOutMessageLogger

java.lang.Object
  extended by org.apache.qpid.server.logging.AbstractRootMessageLogger
      extended by org.apache.qpid.server.logging.SystemOutMessageLogger
All Implemented Interfaces:
RootMessageLogger

public class SystemOutMessageLogger
extends AbstractRootMessageLogger


Field Summary
 
Fields inherited from class org.apache.qpid.server.logging.AbstractRootMessageLogger
DEFAULT_LOG_HIERARCHY_PREFIX
 
Constructor Summary
SystemOutMessageLogger()
           
 
Method Summary
 boolean isMessageEnabled(LogActor actor, LogSubject subject, String logHeirarchy)
          Determine if the LogSubject and the LogActor should be generating log messages.
 boolean isMessageEnabled(LogActor actor, String logHierarchy)
          Determine if the LogActor should be generating log messages.
 void rawMessage(String message, String logHierarchy)
          Log the raw message to the configured logger.
 void rawMessage(String message, Throwable throwable, String logHierarchy)
          Log the raw message to the configured logger.
 
Methods inherited from class org.apache.qpid.server.logging.AbstractRootMessageLogger
isEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemOutMessageLogger

public SystemOutMessageLogger()
Method Detail

isMessageEnabled

public boolean isMessageEnabled(LogActor actor,
                                LogSubject subject,
                                String logHeirarchy)
Description copied from interface: RootMessageLogger
Determine if the LogSubject and the LogActor should be generating log messages.

Specified by:
isMessageEnabled in interface RootMessageLogger
Overrides:
isMessageEnabled in class AbstractRootMessageLogger
Parameters:
actor - The actor requesting the logging
subject - The subject of this log request
logHeirarchy - The log hierarchy for this request
Returns:
boolean true if the message should be logged.

isMessageEnabled

public boolean isMessageEnabled(LogActor actor,
                                String logHierarchy)
Description copied from interface: RootMessageLogger
Determine if the LogActor should be generating log messages.

Specified by:
isMessageEnabled in interface RootMessageLogger
Overrides:
isMessageEnabled in class AbstractRootMessageLogger
Parameters:
actor - The actor requesting the logging
logHierarchy - The log hierarchy for this request
Returns:
boolean true if the message should be logged.

rawMessage

public void rawMessage(String message,
                       String logHierarchy)
Description copied from interface: RootMessageLogger
Log the raw message to the configured logger.

Specified by:
rawMessage in interface RootMessageLogger
Specified by:
rawMessage in class AbstractRootMessageLogger
Parameters:
message - The message to log
logHierarchy - The log hierarchy for this request

rawMessage

public void rawMessage(String message,
                       Throwable throwable,
                       String logHierarchy)
Description copied from interface: RootMessageLogger
Log the raw message to the configured logger. Along with a formated stack trace from the Throwable.

Specified by:
rawMessage in interface RootMessageLogger
Specified by:
rawMessage in class AbstractRootMessageLogger
Parameters:
message - The message to log
throwable - Optional Throwable that should provide stact trace
logHierarchy - The log hierarchy for this request


Licensed to the Apache Software Foundation