logging - 启用 Upstart 日志输出

标签 logging ubuntu ubuntu-10.04 upstart

除了像 http://upstart.ubuntu.com/wiki/Debugging 中建议的那样执行显式日志记录指令, 有没有一种方法可以输出 upstart 正在发生的事情?

  • 引发了什么事件
  • 什么服务改变了它的状态(启动/停止/停止)
  • 发出了什么信号
  • 服务启动时产生的输出

最佳答案

好的,我找到了一种获取它的方法:

$ sudo initctl log-priority        # gives the actual (default) logging level
$ sudo initctl log-priority --help # gives available logging levels
$ sudo initctl log-priority info # is enough to get :
$ tail -f /var/log/syslog        # - log of upstart events
$ tail -f /var/log/boot.log      # - log of services output

关于logging - 启用 Upstart 日志输出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4335343/

相关文章:

java - 使用的记录器数量

ubuntu - Netbeans 7.3 在 ubuntu 上启动

sql-server - 截断 SQL Server 日志文件的命令是什么?

python - 用于跟踪/记录耗时的优雅 Python 解决方案?

java - Maven 使用 1.3 构建错误

shell - Ubuntu Server 21.10 - 插入 USB 设备时如何运行 Shell 脚本

linux - 在ubuntu上打开Aspx扩展网站

c - Linux/bash 中程序返回值的有效范围是多少?

c - 使用 fread 的代码中是否存在错误

c++ - 每个类(class)都有不同的 boost 日志接收器