By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,131 Members | 1,812 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,131 IT Pros & Developers. It's quick & easy.

Log4cxx Time Zone problems

P: n/a
Dan
Hi,

I have recently started using log4cxx and have hit a small snag. I
am using the DailyRollingFileAppender and noticed that the rollovers
are occuring 5 hours before they are supposed to because the timezone
being used it GMT. I have tried to manually set a TZ environment
variable, but it has not solved the problem. Does anyone have a way to
resolve this issue? A possible workaround would be to create a Date
Pattern that would have rollovers occur at 5am every morning, rather
than midnight. Is this possible?

Thanks for any help.
~Dan

Jul 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Dan wrote:
I have recently started using log4cxx and have hit a small snag. I
am using the DailyRollingFileAppender and noticed that the rollovers
are occuring 5 hours before they are supposed to because the timezone
being used it GMT. I have tried to manually set a TZ environment
variable, but it has not solved the problem. Does anyone have a way to
resolve this issue? A possible workaround would be to create a Date
Pattern that would have rollovers occur at 5am every morning, rather
than midnight. Is this possible?


Is there a C++ language question here I'm not seeing? Wouldn't questions
on a _product_ better be addressed to its creators/support/maintenance?
There is a web site for it, you know, http://logging.apache.org/log4cxx/
Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.