Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the"err_lager_hwm" parameter only work when erlang process crash #528

Open
liuqing121 opened this issue Jul 21, 2020 · 0 comments
Open

the"err_lager_hwm" parameter only work when erlang process crash #528

liuqing121 opened this issue Jul 21, 2020 · 0 comments

Comments

@liuqing121
Copy link

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}
]}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant