【日志文件】
/var/log/messages 系统日志, logger命令的默认输出目录
/var/log/secure 安全及身份验证相关的日志
/var/log/maillog 邮件服务器相关消息的日志文件
/var/log/cron 定期任务相关的日志
/var/log/boot.log 系统启动相关的日志

【日志的优先级】
0 emerg 系统不可用
1 alert 必须立即采取措施
2 crit 致命错误
3 err 严重错误
4 warning 警告
5 notice 重要事件
6 info 消息性事件
7 debug 调试

【发送系统日志消息】
logger -p user.notcie "this is a message"
-p 指代为另外指定目标用户及消息等级

 

相关文章:

  • 2022-12-23
  • 2021-10-02
  • 2022-12-23
  • 2021-11-19
  • 2021-11-19
  • 2021-08-02
  • 2022-02-16
  • 2021-04-23
猜你喜欢
  • 2021-06-14
  • 2021-12-22
  • 2021-12-02
  • 2021-09-10
  • 2021-08-27
  • 2021-10-23
相关资源
相似解决方案