Overview
Features
Download
Documentation
Community
Add-Ons & Services

Using POCO::Logging , how to set time zone

Please post support and help requests here.

Using POCO::Logging , how to set time zone

Postby wfdada » 30 Oct 2009, 04:52

I use Poco::Logging to log ,
use config file :
logging.channels.c2.class = FileChannel
logging.channels.c2.path = /home/admin/access.log
logging.channels.c2.rotation = 300M
logging.channels.c2.archive = timestamp
logging.channels.c2.formatter.class = PatternFormatter
logging.channels.c2.formatter.pattern =[%Y%m%d %H:%M:%S]%s[%q]%t
logging.channels.c2.formatter.times = CST

last line seems not to work.
wfdada
 
Posts: 12
Joined: 19 May 2009, 09:15

Re: Using POCO::Logging , how to set time zone

Postby guenter » 30 Oct 2009, 07:09

You can only choose between local and UTC as values for the times property.
guenter
 
Posts: 1110
Joined: 11 Jul 2006, 16:27
Location: Austria

Re: Using POCO::Logging , how to set time zone

Postby wfdada » 30 Oct 2009, 08:22

guenter wrote:You can only choose between local and UTC as values for the times property.


Thank you!
Now it works perfect!
wfdada
 
Posts: 12
Joined: 19 May 2009, 09:15


Return to Support

Who is online

Users browsing this forum: No registered users and 2 guests