Logging Format Design commented on by Aidan Skinner (Jun 29, 2009).

Comment:

The entity format is horrible. Basically unparsable with anything less than a regex. How about:

<username>@<host>:<remote-port>:<channel>:<virtualhost>:[queue|exchange/binding|subscription]

The example:
2009-06-29 13:35:10,1234 +0100 [ con:1(guest, 127.0.0.1, /)/ch:2/sub:1(myqueue) ] Subscription Event Occcured

Becomes:
2009-06-29 13:35:10,1234 +0100 [ [email protected]:2452:2:1/vhost/myqueue ] Subscription Event Occcured

Or on publish
2009-06-29 13:35:10,1234 +0100 [ [email protected]:2452:2/vhost/amq.direct/myqueue ] Publish Event Occcured

Which makes it trivial to grep for all the events related to myqueue on vhost.

--------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:[email protected]

Reply via email to