有谁知道我可以用来发送消息到系统日志的工具或脚本? 我正在尝试排除系统日志configuration的故障,并且无法排除可能性。 我想要做的是这样的:
./testScript -f myFacility "testing testing 123"
并将其发送到本地机器上的系统日志。
在此先感谢您的任何build议。
丰富
看看logging器的命令。
例如
logger -p auth.notice "Some message for the auth.log file"