-
May 1st, 2014, 10:57 AM
#1
Lightstreamer log config pattern - UTC ?
In log4net layouts I can use %utcdate to print the UTC date time in ISO format. I use this on all my .Net services to ensure consistency across different boxes and even different environment installations. I don't see this pattern token in the log4j documentation.
So I assume that %utcdate or some equivalent is not present in the Lightstreamer "com.lightstreamer.logback.RelativeFileAppenders$R ollingFileAppender" appender
What can I do to achieve a UTC datetime in the logs, short of setting the machine timezone to UTC?
Thanks
-
May 2nd, 2014, 09:22 AM
#2
Hi,
Lightstreamer uses logback not log4j (we used log4j in the past)
The <encoder> <pattern> should be able to accept a parameter to specify the timezone to be used.
Take a look here: http://logback.qos.ch/manual/layouts...cPatternLayout
HTH
-
May 22nd, 2014, 05:27 PM
#3
Aha, most wonderful. I now have a UTC timestamp.
Thanks!
Similar Threads
-
By gengliangyu2008 in forum General
Replies: 2
Last Post: November 10th, 2010, 10:40 AM
-
By riwang in forum Client SDKs
Replies: 29
Last Post: June 28th, 2010, 11:56 AM
-
By GoatHunter in forum General
Replies: 2
Last Post: August 25th, 2009, 10:54 AM
-
By EWANG in forum Client SDKs
Replies: 1
Last Post: June 30th, 2009, 08:54 AM
-
By tuongkha in forum Adapter SDKs
Replies: 2
Last Post: March 18th, 2008, 09:11 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 08:40 PM.
Bookmarks