Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Jan 2011
    Location
    london
    Posts
    6

    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

  2. #2
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    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

  3. #3
    Member
    Join Date
    Jan 2011
    Location
    london
    Posts
    6
    Aha, most wonderful. I now have a UTC timestamp.

    Thanks!

 

 

Similar Threads

  1. How to config eclipse to debug lightstreamer.
    By gengliangyu2008 in forum General
    Replies: 2
    Last Post: November 10th, 2010, 11:40 AM
  2. Sync errors in server log
    By riwang in forum Client SDKs
    Replies: 29
    Last Post: June 28th, 2010, 12:56 PM
  3. How can I limit the log file size ?
    By GoatHunter in forum General
    Replies: 2
    Last Post: August 25th, 2009, 11:54 AM
  4. config auto-reconnect interval
    By EWANG in forum Client SDKs
    Replies: 1
    Last Post: June 30th, 2009, 09:54 AM
  5. How to config 2 adapter run on 01 server?
    By tuongkha in forum Adapter SDKs
    Replies: 2
    Last Post: March 18th, 2008, 10:11 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 02:57 PM.