有没有办法在 c# 程序中将日志消息发送到 centos 7 上的本地系统日志服务?在 python 中有 syslog库,但使用 C# 时,唯一的方法是通过网络发送 UDP 消息。
最佳答案
syslog 有几个 c# 库,我在最近的项目中使用了这个
关于c# 将消息发送到 linux 上的本地 syslog 服务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62195809/
有没有办法在 c# 程序中将日志消息发送到 centos 7 上的本地系统日志服务?在 python 中有 syslog库,但使用 C# 时,唯一的方法是通过网络发送 UDP 消息。
最佳答案
syslog 有几个 c# 库,我在最近的项目中使用了这个
关于c# 将消息发送到 linux 上的本地 syslog 服务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62195809/