logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ceki Gülcü <c...@qos.ch>
Subject Re: program version in Log4j
Date Mon, 27 May 2002 21:00:15 GMT


If it is appropriate for your application to configure log4j and it
uses the pattern layout, you can simply include the version in the
conversion pattern:

as in "XYZApp v3.14 %d [%t] %p %c - %m%n"

At 20:42 27.05.2002 +0100, Chris Naude wrote:

>I am trying to get a program version # (or somesort of version identifier) 
>to print as part of my log statements. This would enable me to easily see 
>if I am running the correct program by simply changing the program version 
>identifier. Is there an easy way of doing this in Log4J.

I hope the above is useful.


To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>

View raw message