使用此配置文件:
[
{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
...
我知道正在使用配置文件,因为日志文件的大小正确并且在预期的目录中。那么我做错了什么?
答案 0 :(得分:1)
errlog_type
的文档说:
errlog_type = error | progress | all <optional>
将指定的
sasl_error_logger
执行的错误记录限制为错误报告,进度报告或两者。默认值为all
。
我读到这意味着它只适用于sasl_error_logger
而不是其他记录器记录的内容,在这种情况下是多文件记录器。