Skip to content

Refactor logging#42

Open
chrisveilleux wants to merge 16 commits intomasterfrom
refactor/logging
Open

Refactor logging#42
chrisveilleux wants to merge 16 commits intomasterfrom
refactor/logging

Conversation

@chrisveilleux
Copy link
Member

Description

Add a logging configuration that:

  • Rotates log files at midnight
  • Keeps two weeks worth of rotated log files
  • Defines a format for log messages, including the file and function that generated the message
  • Writes to log files instead of stdout

Converted all calls to the old logger to use the new logger and edited some log levels.

Type of PR

If your PR fits more than one category, there is a high chance you should submit more than one PR. Please consider this carefully before opening the PR.
Either delete those that do not apply, or add an x between the square brackets like so: - [x]

  • Bugfix
  • Feature implementation
  • Refactor of code (without functional changes)
  • Documentation improvements
  • Test improvements

Testing

Ensure that the log messages are being written to files in /var/log/mycroft

Documentation

The new logging configuration code is documented.

@synesthesiam synesthesiam removed their request for review January 5, 2024 17:39
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