Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Updated Examples

...

Code Block
java
java
titleLogging by of a LogEntityChannel Creation
pubic class SubscriptionChannel
...
    if (_statusLogger.isInfoEnabled((ConnectonLogActor)this))
    {
        _statusLogger.info((ConnectonLogActor)this), "Subscription Event occured.ChM-1001 : Channel Created");
    }
...

Would result in the following based on the Logging Format Design.

No Format
2009-06-29 13:35:10,1234 +0100 INFOMESSAGE [ con:1(guest@127.0.0.1/)/ch:2/sub:1:qu(myqueue) ] Subscription Event occcured.ChM-1001 : Channel Created
Code Block
java
java
titleLogging of a newly created LogEntity via connectionnew consumer creation
...
    binding = new ExchangeBinding(...);
    ((LogEntity)binding).setCreator(connection);
... 
// Verify binding can be performed/created
...
    if (if (_statusLogger.isInfoEnabled(bindingsubscriberActor))
    {
        _statusLogger.info(bindingsubscriberActor, "Sub-1001 : Subscription Created");
    }
...

Would result in the following:

No Format
2009-06-29 13:35:10,1234 +0100 INFOMESSAGE [ con:1(guest@127.0.0.1/)/ch:2/pl(ACL, Consume, sub:1:qu(myQueue)myqueue) ] PluginSub-1001 Event: occured for this. Subscription Created

Initial Status Messages

Broker

...