尽管有 {errlog_type, error},SASL 仍存储进度报告
使用此配置文件:
[
{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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
errlog_type
的文档说:我读到这意味着它仅适用于
sasl_error_logger
记录的内容,而不适用于其他记录器(在本例中为多文件记录器)记录的内容。The documentation for
errlog_type
says: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.