This commit is contained in:
anlicheng 2023-06-25 10:49:30 +08:00
parent 3da8c70a2d
commit 7979c763ca

View File

@ -51,7 +51,7 @@
{lager, [
{colored, true},
%% Whether to write a crash log, and where. Undefined means no crash logger.
{crash_log, "log/trade_hub.crash.log"},
{crash_log, "trade_hub.crash.log"},
%% Maximum size in bytes of events in the crash log - defaults to 65536
{crash_log_msg_size, 65536},
%% Maximum size of the crash log in bytes, before its rotated, set
@ -75,9 +75,9 @@
{handlers, [
%% debug | info | warning | error, 日志级别
{lager_console_backend, debug},
{lager_file_backend, [{file, "log/error.log"}, {level, error}]},
{lager_file_backend, [{file, "log/debug.log"}, {level, debug}]},
{lager_file_backend, [{file, "log/info.log"}, {level, info}]}
{lager_file_backend, [{file, "error.log"}, {level, error}]},
{lager_file_backend, [{file, "debug.log"}, {level, debug}]},
{lager_file_backend, [{file, "info.log"}, {level, info}]}
]}
]}