测试系统日志的工具

Ric*_*ich 9 syslog

有谁知道我可以用来向系统日志发送消息的工具或脚本?我正在尝试对 syslog 配置进行故障排除,但在排除可能性方面遇到了麻烦。我想做的是这样的:

./testScript -f myFacility "testing testing 123"
Run Code Online (Sandbox Code Playgroud)

并将其发送到本地计算机上的 syslog。

在此先感谢您的任何建议。

富有的

use*_*517 23

看看记录器命令。

例如

logger -p auth.notice "Some message for the auth.log file"