org.apache.qpid.server.logging
Class NullRootMessageLogger
java.lang.Object
org.apache.qpid.server.logging.AbstractRootMessageLogger
org.apache.qpid.server.logging.NullRootMessageLogger
- All Implemented Interfaces:
- RootMessageLogger
public class NullRootMessageLogger
- extends AbstractRootMessageLogger
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NullRootMessageLogger
public NullRootMessageLogger()
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 loggingsubject
- The subject of this log requestlogHeirarchy
- 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 logginglogHierarchy
- 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 loglogHierarchy
- 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 logthrowable
- Optional Throwable that should provide stact tracelogHierarchy
- The log hierarchy for this request
Licensed to the Apache Software Foundation