OpenChartProject / OpenChart

✨ NEW REPO ✨ https://github.com/OpenChartProject/OpenChart-web
https://github.com/OpenChartProject/OpenChart-web
Other
8 stars 3 forks source link

Setup a logger #41

Closed Kangaroux closed 4 years ago

Kangaroux commented 4 years ago

📖 Overview

We need some kind of logging system setup. It should write to a local logs/ folder. Each logged line should include the severity and timestamp in the form:

[YYYY-MM-DD HH:MM:SS.ms] SEVERITY - msg

The logged timestamp should use the local time, not UTC. It should also use a 24 hour format.

📄 Example

[2020-04-29 12:11:00.0123] DEBUG - Some debug message.