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

Log Rotation #274

Closed
chriscannon opened this issue Mar 27, 2015 · 5 comments
Closed

Log Rotation #274

chriscannon opened this issue Mar 27, 2015 · 5 comments

Comments

@chriscannon
Copy link

Is there a way to do log rotation with Seyren? I tried creating my own logrotate script, but when it runs and creates a new seyren.log file Seyren stops writing to it. Here's my current logrotate script:

/var/log/seyren/*.log {
    daily
    size 100k
    missingok
    rotate 4
    compress
    notifempty
    create 644 root root
}
@chriscannon
Copy link
Author

Anyone?

@neilprosser
Copy link
Collaborator

Sorry, Seyren should be rotating its own logs. See logback.xml for details. It should (and my installation does) rotate log files daily, keeping a maximum of 28 days.

@chriscannon
Copy link
Author

Gotcha. Is there anyway to modify the configuration settings in that file from a command line argument to Java? Ideally I would like to have the logs rotated daily or set <level> to error.

@neilprosser
Copy link
Collaborator

There wasn't, but as of that commit I just put in there you can set the SEYREN_LOG_FILE_LEVEL environment variable to error and you'll just be logging errors.

@chriscannon
Copy link
Author

Thanks!

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

2 participants