Author: ritchiem Date: Mon Aug 3 13:26:33 2009 New Revision: 800366 URL: http://svn.apache.org/viewvc?rev=800366&view=rev Log: QPID-2002 : Added message(LogMessage message) to the LogActor Interface and the ability to retrieve the RootMessageLogger
Modified: qpid/trunk/qpid/java/broker/src/main/java/org/apache/qpid/server/logging/LogActor.java qpid/trunk/qpid/java/broker/src/main/java/org/apache/qpid/server/logging/actors/AbstractActor.java Modified: qpid/trunk/qpid/java/broker/src/main/java/org/apache/qpid/server/logging/LogActor.java URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/java/broker/src/main/java/org/apache/qpid/server/logging/LogActor.java?rev=800366&r1=800365&r2=800366&view=diff ============================================================================== --- qpid/trunk/qpid/java/broker/src/main/java/org/apache/qpid/server/logging/LogActor.java (original) +++ qpid/trunk/qpid/java/broker/src/main/java/org/apache/qpid/server/logging/LogActor.java Mon Aug 3 13:26:33 2009 @@ -40,4 +40,21 @@ * @param message The message to log */ public void message(LogSubject subject, LogMessage message); -} \ No newline at end of file + + /** + * 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. + * + * @param message The message to log + */ + public void message(LogMessage message); + + /** + * + * @return the RootMessageLogger that is currently in use by this LogActor. + */ + RootMessageLogger getRootMessageLogger(); +} \ No newline at end of file Modified: qpid/trunk/qpid/java/broker/src/main/java/org/apache/qpid/server/logging/actors/AbstractActor.java URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/java/broker/src/main/java/org/apache/qpid/server/logging/actors/AbstractActor.java?rev=800366&r1=800365&r2=800366&view=diff ============================================================================== --- qpid/trunk/qpid/java/broker/src/main/java/org/apache/qpid/server/logging/actors/AbstractActor.java (original) +++ qpid/trunk/qpid/java/broker/src/main/java/org/apache/qpid/server/logging/actors/AbstractActor.java Mon Aug 3 13:26:33 2009 @@ -51,4 +51,9 @@ } } + public RootMessageLogger getRootMessageLogger() + { + return _rootLogger; + } + } --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:commits-subscr...@qpid.apache.org