Return-Path: Delivered-To: apmail-logging-log4j-dev-archive@www.apache.org Received: (qmail 71748 invoked from network); 15 May 2010 06:32:05 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 15 May 2010 06:32:05 -0000 Received: (qmail 67612 invoked by uid 500); 15 May 2010 06:32:05 -0000 Delivered-To: apmail-logging-log4j-dev-archive@logging.apache.org Received: (qmail 67569 invoked by uid 500); 15 May 2010 06:32:05 -0000 Mailing-List: contact log4j-dev-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Developers List" Reply-To: "Log4J Developers List" Delivered-To: mailing list log4j-dev@logging.apache.org Received: (qmail 67561 invoked by uid 99); 15 May 2010 06:32:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 May 2010 06:32:05 +0000 X-ASF-Spam-Status: No, hits=-1430.2 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 May 2010 06:32:03 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o4F6VhoD016402 for ; Sat, 15 May 2010 06:31:43 GMT Message-ID: <16605955.62851273905103232.JavaMail.jira@thor> Date: Sat, 15 May 2010 02:31:43 -0400 (EDT) From: "Ralph Goers (JIRA)" To: log4j-dev@logging.apache.org Subject: [jira] Commented: (LOG4J2-31) The Logging API should support a Message object In-Reply-To: <1248466298.412071266683667934.JavaMail.jira@brutus.apache.org> 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/LOG4J2-31?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12867807#action_12867807 ] Ralph Goers commented on LOG4J2-31: ----------------------------------- This is implemented on my experimental branch > The Logging API should support a Message object > ----------------------------------------------- > > Key: LOG4J2-31 > URL: https://issues.apache.org/jira/browse/LOG4J2-31 > Project: Log4j 2 > Issue Type: New Feature > Components: API > Reporter: Ralph Goers > Fix For: 0.1 > > > RFC 5424 defines StructuredData. While implementing this for Logback it was found that making SLF4J support a Message interface and then providing Message definitions for a "SimpleMessage" (message text only), "ParamaterizedMessage" (message plus substitution parameters) and StructuredDataMessage (a message that allows the formatted message to conform to RFC 5424) allows the API to be easily extendable with new Message types and makes it more efficient to pass them through the logging implementation. > Log4j 2.0 should incorporate this into both the API and the implementation. This will allow for easy implementation of a SyslogAppender that conforms with the new Syslog specification (see http://tools.ietf.org/html/rfc5424) as well as using the RFC 5424 as a standard layout that can be used to transport messages via JMS or other protocols. > See http://github.com/rgoers/slf4j and http://github.com/rgoers/logback for examples of how I accomplished this for slf4j & logback. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-dev-help@logging.apache.org