org.apache.qpid.server.logging.actors
Class AbstractActor
java.lang.Object
org.apache.qpid.server.logging.actors.AbstractActor
- All Implemented Interfaces:
- LogActor
- Direct Known Subclasses:
- AMQPChannelActor, AMQPConnectionActor, BrokerActor, GenericActor, ManagementActor, QueueActor, SubscriptionActor
public abstract class AbstractActor
- extends Object
- implements LogActor
Method Summary |
abstract String |
getLogMessage()
|
RootMessageLogger |
getRootMessageLogger()
|
void |
message(LogMessage message)
Logs the specified LogMessage against this actor
Currently logging has a global setting however this will later be revised and
as such the LogActor will need to take into consideration any new configuration
as a means of enabling the logging of LogActors and LogSubjects. |
void |
message(LogSubject subject,
LogMessage message)
Logs the specified LogMessage about the LogSubject
Currently logging has a global setting however this will later be revised and
as such the LogActor will need to take into consideration any new configuration
as a means of enabling the logging of LogActors and LogSubjects. |
String |
toString()
|
_msgPrefix
public final String _msgPrefix
_rootLogger
protected RootMessageLogger _rootLogger
AbstractActor
public AbstractActor(RootMessageLogger rootLogger)
message
public void message(LogSubject subject,
LogMessage message)
- Description copied from interface:
LogActor
- Logs the specified LogMessage about the LogSubject
Currently logging has a global setting however this will later be revised and
as such the LogActor will need to take into consideration any new configuration
as a means of enabling the logging of LogActors and LogSubjects.
- Specified by:
message
in interface LogActor
- Parameters:
subject
- The subject that is being loggedmessage
- The message to log
message
public void message(LogMessage message)
- Description copied from interface:
LogActor
- Logs the specified LogMessage against this actor
Currently logging has a global setting however this will later be revised and
as such the LogActor will need to take into consideration any new configuration
as a means of enabling the logging of LogActors and LogSubjects.
- Specified by:
message
in interface LogActor
- Parameters:
message
- The message to log
getRootMessageLogger
public RootMessageLogger getRootMessageLogger()
- Specified by:
getRootMessageLogger
in interface LogActor
- Returns:
- the RootMessageLogger that is currently in use by this LogActor.
toString
public String toString()
- Overrides:
toString
in class Object
getLogMessage
public abstract String getLogMessage()
- Specified by:
getLogMessage
in interface LogActor
- Returns:
- the String representing this LogActor
Licensed to the Apache Software Foundation