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

Timestamped traces #2

Closed
cdupont opened this issue Jul 1, 2019 · 1 comment
Closed

Timestamped traces #2

cdupont opened this issue Jul 1, 2019 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@cdupont
Copy link
Contributor

cdupont commented Jul 1, 2019

It would be nice to have timestamped traces, e.g.:

127.0.0.1 - - [01/Jul/2019 12:57:57] "GET /api/v1/system/wifi HTTP/1.1" 201 -
@cdupont cdupont added the enhancement New feature or request label Jul 1, 2019
@j-forster
Copy link
Member

Ref: 847c512

An env-variable WAZIUP_LOG has been added to support different modes:

WAZIUP_LOG = "mode,mode,..."
modes: date, time, utc, error, warn, verbose, debug

Without any mode:

[MQTT ] MQTT Server at ":1883".
[HTTP ] HTTP Server at ":80". Use "http://".
[WS   ] MQTT via WebSocket Server at ":80". Use "ws://".
[MQTT ] "mosqsub|13996-DESKTOP-L" Connected Protocol 0x4

With date,time,debug:

2019/08/28 13:56:30 [MQTT ] MQTT Server at ":1883".
2019/08/28 13:56:30 [HTTP ] HTTP Server at ":80". Use "http://".
2019/08/28 13:56:30 [WS   ] MQTT via WebSocket Server at ":80". Use "ws://".
2019/08/28 13:56:31 [MQTT ] "mosqsub|13996-DESKTOP-L" > CONNECT (MQTT 4) "mosqsub|13996-DESKTOP-L" cs:true kat:60
2019/08/28 13:56:31 [MQTT ] "mosqsub|13996-DESKTOP-L" Connected Protocol 0x4
2019/08/28 13:56:31 [MQTT ] "mosqsub|13996-DESKTOP-L" < CONNACK code:0 sess:false

j-forster added a commit that referenced this issue Feb 11, 2021
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