Return-Path: X-Original-To: apmail-karaf-issues-archive@minotaur.apache.org Delivered-To: apmail-karaf-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 056E26177 for ; Fri, 29 Jul 2011 14:34:35 +0000 (UTC) Received: (qmail 51555 invoked by uid 500); 29 Jul 2011 14:34:34 -0000 Delivered-To: apmail-karaf-issues-archive@karaf.apache.org Received: (qmail 51494 invoked by uid 500); 29 Jul 2011 14:34:34 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 51470 invoked by uid 99); 29 Jul 2011 14:34:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jul 2011 14:34:34 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,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; Fri, 29 Jul 2011 14:34:32 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id AF6E541E76D for ; Fri, 29 Jul 2011 14:34:10 +0000 (UTC) Date: Fri, 29 Jul 2011 14:34:10 +0000 (UTC) From: =?utf-8?Q?Jean-Baptiste_Onofr=C3=A9_=28JIRA=29?= To: issues@karaf.apache.org Message-ID: <1068743466.18706.1311950050715.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1738671754.12104.1311778390257.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (KARAF-784) Add date in the default Karaf log MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/KARAF-784?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:all-tabpanel ] Jean-Baptiste Onofr=C3=A9 resolved KARAF-784. ---------------------------------------- Resolution: Fixed > Add date in the default Karaf log > --------------------------------- > > Key: KARAF-784 > URL: https://issues.apache.org/jira/browse/KARAF-784 > Project: Karaf > Issue Type: Improvement > Components: karaf-core > Affects Versions: 2.2.2 > Reporter: Jean-Baptiste Onofr=C3=A9 > Assignee: Jean-Baptiste Onofr=C3=A9 > Fix For: 2.2.3, 3.0.0 > > > The default log pattern used in Karaf for the out file (karaf.log) is: > %d{ABSOLUTE} | %-5.5p | %-16.16t | %-32.32c{1} | %-32.32C %4L | %X{bundle= .id} - %X{bundle.name} - %X{bundle.version} | %m%n > It means that a log line looks like: > 16:36:51,285 | INFO | Thread-6 | FeaturesServiceImpl=20 > As Karaf is a container, and is up for a "long" time, it makes sense to a= dd the date in the log. The log line will looks like: > 2011-07-27 16:49:16,557 | INFO | Thread-4 | FeaturesServiceImpl = |=20 > I propose to use the following pattern (at least in the karaf.log file): > %d{yyyy-MM-dd HH:mm:ss,SSS} | %-5.5p | %-16.16t | %-32.32c{1} | %-32.32C = %4L | %X{bundle.id} - %X{bundle.name} - %X{bundle.version} | %m%n -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira