Waziup / WaziGate

Waziup LoRa Edge gateway
21 stars 20 forks source link

Uniform logging #6

Open cdupont opened 5 years ago

cdupont commented 5 years ago

Having a uniform logging with timestamp and log level would be nice. Proposed format: [timestamp : <module> : <level>] <message> e.g.

[2019-07-01 14:42:47 UTC : Permissions : INFO] Get devices permissions

The module is a component/class inside each container, helping identify the source of the message.

cdupont commented 5 years ago

@j-forster I noticed there is no timestamp in the logs of the Edge:

[DB   ] Dialing MongoDB at "localhost:27017"...

It would be nice to have it for debugging.