You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4cxx-user@logging.apache.org by jw...@ilstechnology.com on 2005/01/18 00:51:46 UTC
timezone question
Is there a way to set the timezone for ALL output from the application? I
can set the property for each appender in the properties file, but our
software runs on an embedded device, and the user can change the timezone
of the system. I can't have them editing the properties file to change the
timezone entires in it. Any help would be greatly appreciated!
Thanks,
Jim
Re: timezone question
Posted by Curt Arnold <ca...@apache.org>.
If the timezone is omitted, the default time zone will be used. You
would only specify the timezone on an appender when you wanted to be
unaffected by the default timezone.
Timezone specification has been added to log4j, but in a slightly
different way. Instead of timezone being a separate property of the
appender, it can be specified as the second parameter to the %d
conversion pattern. For example, "%d{yyyy-MM-dd HH:mm:ss}{GMT}Z %m %n"
Before 0.9.8, log4cxx will be modified to follow log4j's timezone
specification. The JIRA issue is
http://issues.apache.org/jira/browse/LOGCXX-49.
On Jan 17, 2005, at 5:51 PM, jwert@ilstechnology.com wrote:
> Is there a way to set the timezone for ALL output from the
> application? I
> can set the property for each appender in the properties file, but our
> software runs on an embedded device, and the user can change the
> timezone
> of the system. I can't have them editing the properties file to
> change the
> timezone entires in it. Any help would be greatly appreciated!
>
> Thanks,
> Jim
>
>