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

Feature/Log Rotation #34

Open
9 tasks
faraonc opened this issue Jun 1, 2019 · 0 comments
Open
9 tasks

Feature/Log Rotation #34

faraonc opened this issue Jun 1, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@faraonc
Copy link
Member

faraonc commented Jun 1, 2019

Description

As a developer, logs need to rotated and written in a file.

Although I am open for other and newer libraries, I recommend using the library https://github.com/natefinch/lumberjack and read the entirety of this issue sirupsen/logrus#679

Story Points

3

Definitions of Done

  • logs are typically saved in /var/log/<app_name>/app.log (absolute path)
  • rotate logs daily and if the size is 124 MB
  • logs are retained for 28 days
  • maximum number of backed-up logs is 60
  • UTC time is used
  • file should be compressed using gzip
  • unit test possibly needing a global & singleton clock to change the day.
  • a GoLang package implementation in hwsc-lib
  • a Python module implementation in hwsc-lib
@faraonc faraonc added the enhancement New feature or request label Jun 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants