-
February 15th, 2012, 01:18 AM
#1
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
-
February 16th, 2012, 08:42 AM
#2
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.
-
February 16th, 2012, 02:23 PM
#3
Is it possible to configure LS 4.0 to use log4j instead of Logback? As I know, log4j has appender for NT eventlog.
-
February 17th, 2012, 08:56 AM
#4
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
-
By LS_Developer in forum Client SDKs
Replies: 1
Last Post: March 20th, 2012, 08:51 AM
-
By mrkautocom in forum General
Replies: 3
Last Post: December 1st, 2010, 11:00 AM
-
Replies: 1
Last Post: April 14th, 2009, 09:47 AM
-
By RichP1 in forum General
Replies: 1
Last Post: October 21st, 2008, 09:25 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 06:37 PM.
Bookmarks