Skip to content

Conversation

@ChrisLovering
Copy link
Contributor

Closes#14

This adds loguru to the project, migrates all current logging calls to loguru, and sets up a forward so that any libs that use the std lib logger get pushed to loguru.

TODO - Look into retention & rotation in loguru

This configuration pushes all logger logs to loguru, and  defines our loguru configuration.
Loguru's retention setting only cleans up 'old' files, IE files that have been rotated.

With this config, once a log file reaches 10MB it will be rotated out and a new log file will be used. Those 'old' files are then cleaned up 7 days after they were created.
Copy link
Owner

@lemonsaurus lemonsaurus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, this looks good and right to me. Let's do it. 🐰

@lemonsaurus lemonsaurus merged commit b995103 into lemonsaurus:master Oct 21, 2021
@ChrisLovering ChrisLovering deleted the migrate-to-loguru branch October 21, 2021 13:35
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.

2 participants