首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何提高Fetchmail的日志级别?

如何提高Fetchmail的日志级别?
EN

Server Fault用户
提问于 2012-02-01 20:37:10
回答 3查看 15.8K关注 0票数 6

如何提高Fetchmail的日志级别?

这似乎是愚蠢的简单,但我找不到指令和文件,我需要在任何地方在线。

EN

回答 3

Server Fault用户

回答已采纳

发布于 2012-02-01 23:28:58

来自fetchmail(1) (man 1 fetchmail):

不断增加的产出:

代码语言:javascript
复制
   -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的信息:

代码语言:javascript
复制
   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.

希望这能帮上忙!

票数 5
EN

Server Fault用户

发布于 2013-02-28 20:27:33

至少在Debian中,您也可以运行

代码语言:javascript
复制
/etc/init.d/fetchmail debug-run

获取邮件将直接登录到控制台,而不是分叉到后台。

票数 3
EN

Server Fault用户

发布于 2013-02-28 20:21:00

在作为守护进程运行它时,增加其详细性的一种方法是将'-vv‘添加到fetchmail init脚本中。例如,在Debian中,将'-vv‘添加到/etc/init.d/fetchmail中的OPTIONS参数中,重新启动fetchmail,然后在/var/log/mail.log或/var/log/syslog中看到详细的输出。

票数 1
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/355967

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档