activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hiram Chirino (JIRA)" <>
Subject [jira] [Created] (AMQ-3295) better logging messages
Date Mon, 25 Apr 2011 17:01:03 GMT
better logging messages

                 Key: AMQ-3295
             Project: ActiveMQ
          Issue Type: Improvement
          Components: Apollo
            Reporter: Hiram Chirino

I'm trying the latest Apollo snapshot and I see in the logs:

 2011-04-21 08:16:12,536 connected: /

Could you please add the local port number too?

This is especially useful in case of failures. I got:

 2011-04-21 08:14:16,970 authentication failed. address:/, reason:No associated

After investigation, it was the tcp port (and not the ssl port) so it
was not at all related to certificates. A message such as "invalid
user name or password" would be much better.

Also, like for, it would
be useful to get the user name in case of authentication failures.

Finally, to make the log parsers' life easier, it would be really nice
to use a standard format for the messages. For instance something like:

 connected: local: remote:
 authentication failed: local: remote: reason:"invalid user
name or password" user:guesst

FWIW, the "local" address could be useful in case of multihomed servers.

If you don't want to bother about how to format key/value pairs, maybe
you could use log4j's MDC?



This message is automatically generated by JIRA.
For more information on JIRA, see:

View raw message