Adds a logging system to the project. The logger has 2 modes: printing logs to file and printing to console and file at the same time. The mode can be changed with parameters. By default, it`s printing to file. The logger uses a Rotating File Handler. At midnight log file will be rotated.
What else do you need to know?
Logs will be saved in the project folder 'logs', but python has a lot of handlers to send logs from the server if needed. To find out more about handlers, follow the link.
Checklist
[ ] Pipeline set to Ready To Deploy or Review/QA
[ ] Pull request is prepared: Added to sprint, added yourself as assignee, Zenhub task is linked, reviewers are added
[ ] PR is not very big (about 200 lines of change)
[ ] Doesn't create any new FIXME or TODO comments. If not, please explain or create issues to resolve them.
[ ] Doesn’t deliver half-baked changes
[ ] Tested manually or with a new unit test
[ ] Follows best practice rules
Demo screenshots or video/animation, if any
The screenshot shows the file+console mode of logging.
What does it do?
Adds a logging system to the project. The logger has 2 modes: printing logs to file and printing to console and file at the same time. The mode can be changed with parameters. By default, it`s printing to file. The logger uses a Rotating File Handler. At midnight log file will be rotated.
What else do you need to know?
Logs will be saved in the project folder 'logs', but python has a lot of handlers to send logs from the server if needed. To find out more about handlers, follow the link.
Checklist
Ready To Deploy
orReview/QA
FIXME
orTODO
comments. If not, please explain or create issues to resolve them.Demo screenshots or video/animation, if any
The screenshot shows the file+console mode of logging.