log4net centralised logging for multiple components
We are using log4net with rolling file appender.
As we are using load balancing servers log files are generated on both the of the servers and looking at them is of a lot problem.
We are thinking of some centralisied logging which can hold all the logs of different components at one place and if required can be viewed with some log viewer or a customised UI.
We have some proposed solutions to it
More suggestion please post it..
A simple solution is to use Syslog, using the RemoteSyslogAppender
Once you have a Syslog server setup you can use this 'out of the box', with no need for the additional work required using ADO, WCF or MSMQ
A good Syslog server for Windows is Kiwi, with both free and commercial (has more functionality than the free version) versions available. Kiwi comes with a viewer as well.
You can use, for example, a UdpAppender or a RemotingAppender to send the logged events over a network to a central point which logs them to disk. Note that the UDP version can drop messages under heavy network load, as UDP does not offer delivery guarantees.
Alternatively, you could base a TcpAppender class on UdpAppender which uses TCP rather than UDP - providing a reliable delivery service.
链接地址: http://www.djcxy.com/p/43950.html上一篇: severside处理vs客户端处理+ ajax?
下一篇: log4net集中记录多个组件