how about changing log date format?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

how about changing log date format?

Si Chen-2
Hi everybody

How about we change the format of the ofbiz.log date format from

76881[       SequenceUtil.java:263:INFO ] Got bank of sequenced IDs  
for [ContactMech]; curSeqId=10000, maxSeqId=10010, bankSize=10
76905[                Log.java:103:INFO ] Contact mech created with  
id 10000

to an actual date and time stamp like this:
2006-07-12 10:16:41,047 [  ModelScreenWidget.java:371:INFO ] In the  
include-screen tag the screen name was empty, ignoring include; in  
screen [GlobalDecorator]
2006-07-12 10:16:41,115 [     ControlServlet.java:258:DEBUG]  
[[[CompletePack] Done rendering page, Servlet Finished- total:
8.925,since last([CompletePack] Se...):8.925]]

It would just involve a change to the base/config/debug.properties.

Si


Reply | Threaded
Open this post in threaded view
|

Re: how about changing log date format?

BJ Freeman
+1
do this manually now.
would be great if default.



Si Chen sent the following on 7/13/2006 9:57 AM:

> Hi everybody
>
> How about we change the format of the ofbiz.log date format from
>
> 76881[       SequenceUtil.java:263:INFO ] Got bank of sequenced IDs for
> [ContactMech]; curSeqId=10000, maxSeqId=10010, bankSize=10
> 76905[                Log.java:103:INFO ] Contact mech created with id
> 10000
>
> to an actual date and time stamp like this:
> 2006-07-12 10:16:41,047 [  ModelScreenWidget.java:371:INFO ] In the
> include-screen tag the screen name was empty, ignoring include; in
> screen [GlobalDecorator]
> 2006-07-12 10:16:41,115 [     ControlServlet.java:258:DEBUG]
> [[[CompletePack] Done rendering page, Servlet Finished-
> total:8.925,since last([CompletePack] Se...):8.925]]
>
> It would just involve a change to the base/config/debug.properties.
>
> Si
>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: how about changing log date format?

Fred Forester-2
+1

BJ Freeman wrote:

> +1
> do this manually now.
> would be great if default.
>
>
>
> Si Chen sent the following on 7/13/2006 9:57 AM:
>
>> Hi everybody
>>
>> How about we change the format of the ofbiz.log date format from
>>
>> 76881[       SequenceUtil.java:263:INFO ] Got bank of sequenced IDs
>> for [ContactMech]; curSeqId=10000, maxSeqId=10010, bankSize=10
>> 76905[                Log.java:103:INFO ] Contact mech created with id
>> 10000
>>
>> to an actual date and time stamp like this:
>> 2006-07-12 10:16:41,047 [  ModelScreenWidget.java:371:INFO ] In the
>> include-screen tag the screen name was empty, ignoring include; in
>> screen [GlobalDecorator]
>> 2006-07-12 10:16:41,115 [     ControlServlet.java:258:DEBUG]
>> [[[CompletePack] Done rendering page, Servlet Finished-
>> total:8.925,since last([CompletePack] Se...):8.925]]
>>
>> It would just involve a change to the base/config/debug.properties.
>>
>> Si
>>
>>
>>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: how about changing log date format?

Brett
+1

And I wouldn't mind a few example ones commented out since I alway
have to look this up with I want to change the log format.

On 7/13/06, Fred Forester <[hidden email]> wrote:

> +1
>
> BJ Freeman wrote:
> > +1
> > do this manually now.
> > would be great if default.
> >
> >
> >
> > Si Chen sent the following on 7/13/2006 9:57 AM:
> >
> >> Hi everybody
> >>
> >> How about we change the format of the ofbiz.log date format from
> >>
> >> 76881[       SequenceUtil.java:263:INFO ] Got bank of sequenced IDs
> >> for [ContactMech]; curSeqId=10000, maxSeqId=10010, bankSize=10
> >> 76905[                Log.java:103:INFO ] Contact mech created with id
> >> 10000
> >>
> >> to an actual date and time stamp like this:
> >> 2006-07-12 10:16:41,047 [  ModelScreenWidget.java:371:INFO ] In the
> >> include-screen tag the screen name was empty, ignoring include; in
> >> screen [GlobalDecorator]
> >> 2006-07-12 10:16:41,115 [     ControlServlet.java:258:DEBUG]
> >> [[[CompletePack] Done rendering page, Servlet Finished-
> >> total:8.925,since last([CompletePack] Se...):8.925]]
> >>
> >> It would just involve a change to the base/config/debug.properties.
> >>
> >> Si
> >>
> >>
> >>
> >
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: how about changing log date format?

Joe Eckard
In reply to this post by Si Chen-2
+1

Replacing %-5r with %d{ISO8601} is usually the first thing I do.

-Joe

On Jul 13, 2006, at 12:57 PM, Si Chen wrote:

> Hi everybody
>
> How about we change the format of the ofbiz.log date format from
>
> 76881[       SequenceUtil.java:263:INFO ] Got bank of sequenced IDs
> for [ContactMech]; curSeqId=10000, maxSeqId=10010, bankSize=10
> 76905[                Log.java:103:INFO ] Contact mech created with id
> 10000
>
> to an actual date and time stamp like this:
> 2006-07-12 10:16:41,047 [  ModelScreenWidget.java:371:INFO ] In the
> include-screen tag the screen name was empty, ignoring include; in
> screen [GlobalDecorator]
> 2006-07-12 10:16:41,115 [     ControlServlet.java:258:DEBUG]
> [[[CompletePack] Done rendering page, Servlet Finished-
> total:8.925,since last([CompletePack] Se...):8.925]]
>
> It would just involve a change to the base/config/debug.properties.
>
> Si
>

Reply | Threaded
Open this post in threaded view
|

Re: how about changing log date format?

Jacques Le Roux
Administrator
+1

Jacques

----- Original Message -----
From: "J. Eckard" <[hidden email]>
To: <[hidden email]>
Sent: Thursday, July 13, 2006 7:31 PM
Subject: Re: how about changing log date format?


> +1
>
> Replacing %-5r with %d{ISO8601} is usually the first thing I do.
>
> -Joe
>
> On Jul 13, 2006, at 12:57 PM, Si Chen wrote:
>
> > Hi everybody
> >
> > How about we change the format of the ofbiz.log date format from
> >
> > 76881[       SequenceUtil.java:263:INFO ] Got bank of sequenced IDs
> > for [ContactMech]; curSeqId=10000, maxSeqId=10010, bankSize=10
> > 76905[                Log.java:103:INFO ] Contact mech created with id
> > 10000
> >
> > to an actual date and time stamp like this:
> > 2006-07-12 10:16:41,047 [  ModelScreenWidget.java:371:INFO ] In the
> > include-screen tag the screen name was empty, ignoring include; in
> > screen [GlobalDecorator]
> > 2006-07-12 10:16:41,115 [     ControlServlet.java:258:DEBUG]
> > [[[CompletePack] Done rendering page, Servlet Finished-
> > total:8.925,since last([CompletePack] Se...):8.925]]
> >
> > It would just involve a change to the base/config/debug.properties.
> >
> > Si
> >