Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Apr 2011
    Location
    Bedminster
    Posts
    17

    Logging to NT eventlog

    Our LS 4.0 server is running on Windows Server as window service. What need to be done in the configuraion in order to let LS put its log messages to NT event log?

    Thanks

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    985
    LS Server leans entirely on "Logback" for its own logging activity, so the log can be sent to any destination, provided that there is a suitable Logback appender.
    As far as I know, no ready-made Logback appender for the NT event log is available.
    You would have to write your own appender class, then add it to the Server classpath and configure an appender in lightstreamer_log_conf.xml based on your appender class.

    We are not experts on this matter; I guess you could, alternatively, use one of the ready-made appenders to send your log to an external process which, in turn, would append the log to the NT event log. I see that a SocketAppender class is available in Logback.

  3. #3
    Member
    Join Date
    Apr 2011
    Location
    Bedminster
    Posts
    17
    Is it possible to configure LS 4.0 to use log4j instead of Logback? As I know, log4j has appender for NT eventlog.

  4. #4
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    Hi,

    the only way to use log4j in place of logback would be to create (or configure if anything like this already exists) a logback appender that forwards messages to log4j.

    A better solution would be to port the log4j NT-event-log-appender to logback; if the source code of such appender is available the porting should be an easy task

    HTH

 

 

Similar Threads

  1. How to turn on LS client side logging?
    By LS_Developer in forum Client SDKs
    Replies: 1
    Last Post: March 20th, 2012, 08:51 AM
  2. Logging info messages
    By mrkautocom in forum General
    Replies: 3
    Last Post: December 1st, 2010, 11:00 AM
  3. How to disable server logging?
    By ITS in forum General
    Replies: 1
    Last Post: April 14th, 2009, 09:47 AM
  4. Logging
    By RichP1 in forum General
    Replies: 1
    Last Post: October 21st, 2008, 09:25 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 09:19 PM.