c# 将消息发送到 linux 上的本地 syslog 服务

标签 c# linux mono syslog

有没有办法在 c# 程序中将日志消息发送到 centos 7 上的本地系统日志服务?在 python 中有 syslog库,但使用 C# 时,唯一的方法是通过网络发送 UDP 消息。

最佳答案

syslog 有几个 c# 库,我在最近的项目中使用了这个

https://github.com/emertechie/SyslogNet

关于c# 将消息发送到 linux 上的本地 syslog 服务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62195809/

相关文章:

android - Appium ERROR 转储失败,因为无法加载 Assets : Invalid file Support

c# - Monotouch 应用程序中的线程数

c# - 如何在 Mac 上从命令行编译 Mono 项目

c# - 为什么 "SELECT * FROM user"会抛出语法错误?

c# - Azure Redis 无法连接到 Redis 服务器

c# - 使用 LinQ 从 IEnumerable 添加项目到列表

c# - 使用多个显示器和不同的 DPI 查找虚拟屏幕宽度

linux - 如何在不在屏幕上书写的情况下捕获键盘输入

c++ - 如何在 CMake Superbuild 中查找 dll/so 文件

c# - 线程函数的行为与我预期的不一样