.net - How to Redirect Trace Information to syslog? -
i want override default trace listener route trace information syslog server.
i using kiwi syslog server. now, sending message syslog server using nuget library syslognet.client 0.2.3.
var _syslogsender = new syslogudpsender("localhost", 514); _syslogsender.send( new syslogmessage( datetime.now, facility.securityorauthorizationmessages1, severity.informational, environment.machinename, "application name", "message content"), new syslogrfc5424messageserializer());
instead of sending message syslog server want override listener send message directly syslog using trace info or error.
basically need want listener listen trace info , if comes in trace info should write syslog.
Comments
Post a Comment