You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In production,If I want to limit the error log or info log num,I must use the parameter "high_water_mark",otherwise ,the log num can not be limit. for emample,the right configuration is :
{lager,[
{handlers,[
{lager_file_backend, [{file, "error.log"}, {level, error}, {count, 5}, {size, 10485760},{high_water_mark,50},{flush_queue,true}]},
{lager_file_backend, [{file, "info.log"}, {level, info}, {count, 5}, {size, 10485760},{high_water_mark,50},{flush_queue,true}]}
]},
{error_logger_hwm,50}
]}
the wrong configuration is:
{lager,[
{handlers,[
{lager_file_backend, [{file, "error.log"}, {level, error}, {count, 5}, {size, 10485760},{flush_queue,true}]},
{lager_file_backend, [{file, "info.log"}, {level, info}, {count, 5}, {size, 10485760},{flush_queue,true}]}
]},
{error_logger_hwm,50}
]}
The text was updated successfully, but these errors were encountered:
In production,If I want to limit the error log or info log num,I must use the parameter "high_water_mark",otherwise ,the log num can not be limit. for emample,the right configuration is :
{lager,[
{handlers,[
{lager_file_backend, [{file, "error.log"}, {level, error}, {count, 5}, {size, 10485760},{high_water_mark,50},{flush_queue,true}]},
{lager_file_backend, [{file, "info.log"}, {level, info}, {count, 5}, {size, 10485760},{high_water_mark,50},{flush_queue,true}]}
]},
{error_logger_hwm,50}
]}
the wrong configuration is:
{lager,[
{handlers,[
{lager_file_backend, [{file, "error.log"}, {level, error}, {count, 5}, {size, 10485760},{flush_queue,true}]},
{lager_file_backend, [{file, "info.log"}, {level, info}, {count, 5}, {size, 10485760},{flush_queue,true}]}
]},
{error_logger_hwm,50}
]}
The text was updated successfully, but these errors were encountered: