尽管有 {errlog_type, error},SASL 仍存储进度报告

发布于 2024-11-01 04:48:28 字数 1494 浏览 0 评论 0原文

使用此配置文件:

[
 {gmcontroller, [{config_file, "/mware/config/controller.config"}]},
 %% SASL config
 {sasl, [
         {sasl_error_logger, false},
         {errlog_type, error},
         {error_logger_mf_dir, "log/sasl"},      % Log directory
         {error_logger_mf_maxbytes, 10485760},   % 1 MB max file size
         {error_logger_mf_maxfiles, 5}           % 5 files max
         ]}
].

SASL 出于某种原因保留进度报告:

4> rb:start([{report_dir, "/mware/log/sasl"}]). 
rb: reading report...done.
rb: reading report...done.
rb: reading report...done.
rb: reading report...done.
rb: reading report...done.

=PROGRESS REPORT==== 13-Apr-2011::16:29:11 ===
          supervisor: {local,sasl_sup}
             started: [{pid,<0.48.0>},
                       {name,rb_server},
                       {mfargs,
                           {rb,start_link,
                               [[{report_dir,
                                     "/mware/log/sasl"}]]}},
                       {restart_type,temporary},
                       {shutdown,brutal_kill},
                       {child_type,worker}]
{ok,<0.48.0>}

5> rb:list().
  No                Type      Process       Date     Time
  ==                ====      =======       ====     ====
 157            progress  <6835.60.0> 2011-04-13 14:10:31
 156            progress  <6835.60.0> 2011-04-13 14:10:31
 ...

我知道正在使用配置文件,因为日志文件的大小正确并且位于预期的目录中。那么我做错了什么?

With this config file:

[
 {gmcontroller, [{config_file, "/mware/config/controller.config"}]},
 %% SASL config
 {sasl, [
         {sasl_error_logger, false},
         {errlog_type, error},
         {error_logger_mf_dir, "log/sasl"},      % Log directory
         {error_logger_mf_maxbytes, 10485760},   % 1 MB max file size
         {error_logger_mf_maxfiles, 5}           % 5 files max
         ]}
].

SASL for some reason keeps progress reports:

4> rb:start([{report_dir, "/mware/log/sasl"}]). 
rb: reading report...done.
rb: reading report...done.
rb: reading report...done.
rb: reading report...done.
rb: reading report...done.

=PROGRESS REPORT==== 13-Apr-2011::16:29:11 ===
          supervisor: {local,sasl_sup}
             started: [{pid,<0.48.0>},
                       {name,rb_server},
                       {mfargs,
                           {rb,start_link,
                               [[{report_dir,
                                     "/mware/log/sasl"}]]}},
                       {restart_type,temporary},
                       {shutdown,brutal_kill},
                       {child_type,worker}]
{ok,<0.48.0>}

5> rb:list().
  No                Type      Process       Date     Time
  ==                ====      =======       ====     ====
 157            progress  <6835.60.0> 2011-04-13 14:10:31
 156            progress  <6835.60.0> 2011-04-13 14:10:31
 ...

I know the config file is being used, because the logfiles are of the correct size and in the expected directory. So what am I doing wrong?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

生生不灭 2024-11-08 04:48:28

errlog_type 的文档说:

errlog_type = 错误 |进展|所有<可选>

将指定 sasl_error_logger 执行的错误日志记录限制为错误报告、进度报告或两者。默认为全部

我读到这意味着它仅适用于 sasl_error_logger 记录的内容,而不适用于其他记录器(在本例中为多文件记录器)记录的内容。

The documentation for errlog_type says:

errlog_type = error | progress | all <optional>

Restricts the error logging performed by the specified sasl_error_logger to error reports, progress reports, or both. Default is all.

I read this to mean that it only applies to what is logged by sasl_error_logger and not by other loggers, the multi-file logger in this case.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文