Logging
配置日志记录
命令行选项
-l, --log FILE File to redirect log output.
-T, --logtime Timestamp log entries (default is true).
-s, --syslog Enable syslog as log method.
-r, --remote_syslog Syslog server address.
-D, --debug Enable debugging output.
-V, --trace Trace the raw protocol.
-VV Verbose trace (traces system account as well)
-DV Debug and Trace.
-DVV Debug and verbose trace (traces system account as well)调试和追踪
nats-server -DV -m 8222 -user foo -pass bar日志文件重定向
时间戳
系统日志
使用配置文件
日志轮转
一些额外说明
最后更新于