简体   繁体   English

用于从远程服务器读取log4net文件的免费工具

[英]Free tools for reading log4net files from a remote server

Are there any good free tools out there that can allow me to tail read a log4net log file when that file is generated on a production server? 是否有任何好的免费工具可以让我在生产服务器上生成该文件时尾部读取log4net日志文件?

I am thinking about adjusting it to push to the database and reading the database, but that seems overkill for something pretty simple. 我正在考虑调整它以推送到数据库并读取数据库,但这似乎有点过于简单。 Am I missing an obvious tool? 我错过了一个明显的工具吗?

We tend to use the log4net Remote Logging Service so that logs get pumped across the network rather than on the drive of a production server. 我们倾向于使用log4net远程日志记录服务,以便日志通过网络而不是生产服务器的驱动器进行泵送。

The service can then be configured to put logs into a file on the host machine. 然后,可以将该服务配置为将日志放入主机上的文件中。

Then, we use log2console to view the log file provided the log file is in a network share or you are working directly on the logging machine. 然后,我们使用log2console查看日志文件,前提是日志文件位于网络共享中,或者您直接在日志记录计算机上工作。

It's not clear exactly what your requirements are, but if you have access to the network share where the log file is, you might just be able to point log2console at it and view it. 目前尚不清楚您的要求是什么,但是如果您可以访问日志文件所在的网络共享,您可能只能将log2console指向它并查看它。

考虑在您的log4net配置中添加Chainsaw Appender ,然后运行log2console以在生成日志时接收/过滤/解析日志。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM