Page 1 of 1

Using POCO::Logging , how to set time zone

Posted: 30 Oct 2009, 04:52
by wfdada
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.

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

Posted: 30 Oct 2009, 07:09
by guenter
You can only choose between local and UTC as values for the times property.

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

Posted: 30 Oct 2009, 08:22
by wfdada
guenter wrote:You can only choose between local and UTC as values for the times property.


Thank you!
Now it works perfect!