You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by Leif Mortenson <le...@silveregg.co.jp> on 2002/02/25 12:15:14 UTC

LogKit Hierarchy default Format

Currently, the default format for a LogKit logger is:
"%7.7{priority} %5.5{time} [%8.8{category}] (%{context}):
%{message}\\n%{throwable}";

I was wondering what the reason for time having a length of 5 was. This
is a unix time,
so it just shows a value like: 10415 or something. Not very useful. How
about changing
this default value to:
"%7.7{priority} %10.10{time} [%8.8{category}] (%{context}):
%{message}\\n%{throwable}";
so that the whole time is visible.

A default like the following would be the most useful for most people,
but it may be a little
more CPU intensive.
"%7.7{priority} %19.19{time:yyyy-MM-dd' 'HH:mm:ss.SSS} [%8.8{category}]
(%{context}): %{message}\n%{throwable}"

Thoughts?

Leif



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: LogKit Hierarchy default Format

Posted by Peter Donald <pe...@apache.org>.
On Mon, 25 Feb 2002 22:15, Leif Mortenson wrote:
> I was wondering what the reason for time having a length of 5 was. This
> is a unix time,
> so it just shows a value like: 10415 or something. Not very useful. How
> about changing
> this default value to:
> "%7.7{priority} %10.10{time} [%8.8{category}] (%{context}):
> %{message}\\n%{throwable}";
> so that the whole time is visible.
>
> A default like the following would be the most useful for most people,
> but it may be a little
> more CPU intensive.
> "%7.7{priority} %19.19{time:yyyy-MM-dd' 'HH:mm:ss.SSS} [%8.8{category}]
> (%{context}): %{message}\n%{throwable}"

The main reason it had the original format was because people were relying on 
the format of the output to be a specific format. However I suppose the 
second version while not backwards compatible will be more useful to people. 
If you do that then bump the version to 1.1

-- 
Cheers,

Pete

------------------------------------------------------------
 militant agnostic: i don't know, and you don't know either.
------------------------------------------------------------

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: LogKit Hierarchy default Format

Posted by Eung-ju Park <co...@apache.org>.
----- Original Message -----
From: "Leif Mortenson" <le...@silveregg.co.jp>
To: "Avalon Dev Mailing List" <av...@jakarta.apache.org>
Sent: Monday, February 25, 2002 8:15 PM
Subject: LogKit Hierarchy default Format


> Currently, the default format for a LogKit logger is:
> "%7.7{priority} %5.5{time} [%8.8{category}] (%{context}):
> %{message}\\n%{throwable}";
>
> I was wondering what the reason for time having a length of 5 was. This
> is a unix time,
> so it just shows a value like: 10415 or something. Not very useful. How
> about changing
> this default value to:
> "%7.7{priority} %10.10{time} [%8.8{category}] (%{context}):
> %{message}\\n%{throwable}";
> so that the whole time is visible.
>
> A default like the following would be the most useful for most people,
> but it may be a little
> more CPU intensive.
> "%7.7{priority} %19.19{time:yyyy-MM-dd' 'HH:mm:ss.SSS} [%8.8{category}]
> (%{context}): %{message}\n%{throwable}"
>
> Thoughts?

+1.  second format.

>
> Leif
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>