Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5378E2024 for ; Mon, 25 Apr 2011 17:15:42 +0000 (UTC) Received: (qmail 4321 invoked by uid 500); 25 Apr 2011 17:15:42 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 4287 invoked by uid 500); 25 Apr 2011 17:15:41 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 4278 invoked by uid 99); 25 Apr 2011 17:15:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Apr 2011 17:15:41 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Apr 2011 17:15:41 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 73C77B3E22 for ; Mon, 25 Apr 2011 17:15:03 +0000 (UTC) Date: Mon, 25 Apr 2011 17:15:03 +0000 (UTC) From: "Hiram Chirino (JIRA)" To: dev@activemq.apache.org Message-ID: <114472176.125.1303751703470.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <523249568.86.1303750863080.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (AMQ-3295) better logging messages MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMQ-3295?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Hiram Chirino resolved AMQ-3295. -------------------------------- Resolution: Fixed Assignee: Hiram Chirino > better logging messages > ----------------------- > > Key: AMQ-3295 > URL: https://issues.apache.org/jira/browse/AMQ-3295 > Project: ActiveMQ > Issue Type: Improvement > Components: Apollo > Reporter: Hiram Chirino > Assignee: Hiram Chirino > > {quote} > I'm trying the latest Apollo snapshot and I see in the logs: > 2011-04-21 08:16:12,536 connected: /127.0.0.1:53012 > 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:/127.0.0.1:53008, reason:No associated certificates > 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 http://fusesource.com/issues/browse/DEV-3052, 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:127.0.0.1:61613 remote:127.0.0.1:53012 > authentication failed: local:127.0.0.1:61613 remote:127.0.0.1:53012 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? > Cheers, > Lionel > {quote} -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira