Return-Path: Delivered-To: apmail-qpid-dev-archive@www.apache.org Received: (qmail 83516 invoked from network); 1 Sep 2010 18:13:22 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Sep 2010 18:13:22 -0000 Received: (qmail 14762 invoked by uid 500); 1 Sep 2010 18:13:21 -0000 Delivered-To: apmail-qpid-dev-archive@qpid.apache.org Received: (qmail 14681 invoked by uid 500); 1 Sep 2010 18:13:21 -0000 Mailing-List: contact dev-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@qpid.apache.org Delivered-To: mailing list dev@qpid.apache.org Received: (qmail 14670 invoked by uid 99); 1 Sep 2010 18:13:21 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Sep 2010 18:13:21 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.9] (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 01 Sep 2010 18:13:19 +0000 Received: (qmail 83316 invoked by uid 99); 1 Sep 2010 18:12:57 -0000 Received: from localhost.apache.org (HELO mail-bw0-f42.google.com) (127.0.0.1) (smtp-auth username ritchiem, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Sep 2010 18:12:57 +0000 Received: by bwz8 with SMTP id 8so8352838bwz.15 for ; Wed, 01 Sep 2010 11:12:55 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.27.20 with SMTP id g20mr5360427bkc.114.1283364775453; Wed, 01 Sep 2010 11:12:55 -0700 (PDT) Received: by 10.204.74.212 with HTTP; Wed, 1 Sep 2010 11:12:55 -0700 (PDT) In-Reply-To: <30474676.91621283253534136.JavaMail.jira@thor> References: <5940568.90501283247472917.JavaMail.jira@thor> <30474676.91621283253534136.JavaMail.jira@thor> Date: Wed, 1 Sep 2010 19:12:55 +0100 Message-ID: Subject: Re: [jira] Updated: (QPID-2835) Implement connections (CON) operational logging on 0-10 From: Martin Ritchie To: dev@qpid.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi Sorin, I've been watching your changes wrt the Operational Logging apologies for not replying to your thread over the weekend but I wasn't at a computer. I think the addition of the toLogString() is the wrong approach here. The responsibility for the logging format should not lie with the individual model objects. >From our discussion on QPID-2780 this doesn't seem like the same approach you are now taking, what changed? The change suggested by the patch on QPID-2835 will introduce inconsistency in the operation logging. Something that its introduction was designed to reduce. The LogActors are that point where the consistency is gained. By locating the LogFormat and the string builder in one location the LogActor has full responsibility of formatting log messages. The approach that I would have taken here is to expose the required common methods for logging on our Session and Connection models. This would then mean that we would have two clean interfaces boundaries: LogActors <-> Logging Framework LogActors <-> Model Objects This would mean that the desire to move to slf4j would be a matter of adjusting the Logging Framework and the adding consistent 1-0 logging would be simply a matter of implementing the model interfaces. The only code that I would expect to see added to the 0-10 Connection code paths is the introduction of Logging commands. The 0-10 Model Objects should have nothing to do with formatting logging statements. Cheers Martin On 31 August 2010 12:18, Sorin Suciu (JIRA) wrote: > > =C2=A0 =C2=A0 [ https://issues.apache.org/jira/browse/QPID-2835?page=3Dco= m.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] > > Sorin Suciu updated QPID-2835: > ------------------------------ > > =C2=A0 =C2=A0Attachment: qpid-2835.patch > >> Implement connections (CON) operational logging on 0-10 >> ------------------------------------------------------- >> >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Key: QPID-2835 >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 URL: https://iss= ues.apache.org/jira/browse/QPID-2835 >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Project: Qpid >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Issue Type: Improvement >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Components: Java Broker >> =C2=A0 =C2=A0Affects Versions: 0.7 >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Reporter: Sorin Suciu >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Priority: Minor >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Fix For: 0.7 >> >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 Attachments: qpid-2835.patch >> >> >> This is part of the Qpid-2801, dealing with connection operational loggi= ng on 0-10 code path. > > -- > This message is automatically generated by JIRA. > - > You can reply to this email to add a comment to the issue online. > > > --------------------------------------------------------------------- > Apache Qpid - AMQP Messaging Implementation > Project: =C2=A0 =C2=A0 =C2=A0http://qpid.apache.org > Use/Interact: mailto:dev-subscribe@qpid.apache.org > > --=20 Martin Ritchie --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:dev-subscribe@qpid.apache.org