Skip to content

Rotate is already implemented, but not documented. #86

@leonardorame

Description

@leonardorame

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"},.

That's it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions