We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, just to mention that rotation facility is already implemented in 0.0.14, but not documented.
The configuration should be like:
config :logger, :debug, path: "/path/to/debug.log", level: :debug, rotate: %{max_bytes: 10400, keep: 5}
This creates log files with a maximum size of 10400 bytes and only keep 5 files, like this:
debug.log debug.log.1 debug.log.2 debug.log.3 debug.log.4
And don't forget to replace {:logger_file_backend, "~> 0.0.10"}, to {:logger_file_backend, "~> 0.0.14"},.
{:logger_file_backend, "~> 0.0.10"},
{:logger_file_backend, "~> 0.0.14"},
That's it.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi, just to mention that rotation facility is already implemented in 0.0.14, but not documented.
The configuration should be like:
This creates log files with a maximum size of 10400 bytes and only keep 5 files, like this:
And don't forget to replace
{:logger_file_backend, "~> 0.0.10"},
to{:logger_file_backend, "~> 0.0.14"},
.That's it.
The text was updated successfully, but these errors were encountered: