如何提高Fetchmail的日志级别?
这似乎是愚蠢的简单,但我找不到指令和文件,我需要在任何地方在线。
发布于 2012-02-01 23:28:58
来自fetchmail(1) (man 1 fetchmail):
不断增加的产出:
-v | --verbose
Verbose mode. All control messages passed between fetchmail and the
mailserver are echoed to stdout. Overrides --silent. Doubling this
option (-v -v) causes extra diagnostic information to be printed.关于调试到syslog的信息:
The --syslog option (keyword: set syslog) allows you to redirect status and
error messages emitted to the syslog(3) system daemon if available. Mes-
sages are logged with an id of fetchmail, the facility LOG_MAIL, and priori-
ties LOG_ERR, LOG_ALERT or LOG_INFO. This option is intended for logging
status and error messages which indicate the status of the daemon and the
results while fetching mail from the server(s). Error messages for command
line options and parsing the .fetchmailrc file are still written to stderr,
or to the specified log file. The --nosyslog option turns off use of sys-
log(3), assuming it’s turned on in the ~/.fetchmailrc file, or that the -L
or --logfile <file> option was used.希望这能帮上忙!
发布于 2013-02-28 20:27:33
至少在Debian中,您也可以运行
/etc/init.d/fetchmail debug-run获取邮件将直接登录到控制台,而不是分叉到后台。
发布于 2013-02-28 20:21:00
在作为守护进程运行它时,增加其详细性的一种方法是将'-vv‘添加到fetchmail init脚本中。例如,在Debian中,将'-vv‘添加到/etc/init.d/fetchmail中的OPTIONS参数中,重新启动fetchmail,然后在/var/log/mail.log或/var/log/syslog中看到详细的输出。
https://serverfault.com/questions/355967
复制相似问题