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

Set up log rotation #18

Merged
merged 2 commits into from
Jan 16, 2024
Merged

Set up log rotation #18

merged 2 commits into from
Jan 16, 2024

Conversation

ghiculescu
Copy link
Collaborator

ref: rails/rails#44888

If my reading of https://github.com/ruby/logger/blob/0996f90650fd95718f0ffe835b965de18654b71c/lib/logger/log_device.rb#L176 is correct, this will:

  • Prevent the log file size from exceeding 10mb.
  • Keep at most two log files (entangler.log and entangler.log.0).

@ghiculescu ghiculescu self-assigned this Jan 16, 2024
@ghiculescu ghiculescu merged commit 63a0b68 into master Jan 16, 2024
4 checks passed
@ghiculescu ghiculescu deleted the log-rotation branch January 16, 2024 04:40
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

Successfully merging this pull request may close these issues.

1 participant