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

Support File Logging #39

Open
somefriggnidiot opened this issue Mar 11, 2018 · 0 comments
Open

Support File Logging #39

somefriggnidiot opened this issue Mar 11, 2018 · 0 comments

Comments

@somefriggnidiot
Copy link
Owner

Story

As a bot owners
I want to save log messages to a file
So that I can review server activity at a later date.

Requirements

  • Support is added for all existing logging messages to be able to be logged to a file.
  • Message handler is updated to allow file logging.
  • Config is updated to control granularity of file logging.
  • Tests added/updated as applicable.
  • Readme updated with example configuration and usage.

Design

A new logging file should be created for each day the bot is running (starting at system/environment 00:00), with each message on its own line.
Messages should use the same format and timestamp granularity as those logged to the console.

Technical Design

logToFile() method should be added to MessageHandler; should take care of actual logging of message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant