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

Add date and time to log output #83

Open
voruti opened this issue Dec 1, 2023 · 0 comments
Open

Add date and time to log output #83

voruti opened this issue Dec 1, 2023 · 0 comments

Comments

@voruti
Copy link
Contributor

voruti commented Dec 1, 2023

I would like to have the date and (especially) the time to be logged with every line of log output, to better understand what's happening at what point in time. I think the logged time should be fine-grained down to the second, maybe even millisecond.

Current example of a log of the service running in a Docker container with restart: always:

...
linakcontroller-linakcontroller-1  | Height: 1078mm Speed: 83mm/s
linakcontroller-linakcontroller-1  | Height: 1105mm Speed: 83mm/s
linakcontroller-linakcontroller-1  | Height: 1131mm Speed: 83mm/s
linakcontroller-linakcontroller-1  | Height: 1150mm Speed: 19mm/s
linakcontroller-linakcontroller-1  | Final height: 1151mm (Target: 1151mm)
linakcontroller-linakcontroller-1  | Lost connection with AB:CD:EF:AB:CD:EF
Connecting failed - timed outer-1  | Connecting
linakcontroller-linakcontroller-1  | Removing stale PID file /var/run/dbus/pid..
linakcontroller-linakcontroller-1  | Starting system message bus: dbus.
Connecting failedinakcontroller-1  | Connecting
linakcontroller-linakcontroller-1  | Device with address AB:CD:EF:AB:CD:EF was not found.
linakcontroller-linakcontroller-1  | Removing stale PID file /var/run/dbus/pid..
linakcontroller-linakcontroller-1  | Starting system message bus: dbus.
Connecting failedinakcontroller-1  | Connecting
linakcontroller-linakcontroller-1  | Device with address AB:CD:EF:AB:CD:EF was not found.
linakcontroller-linakcontroller-1  | Removing stale PID file /var/run/dbus/pid..
linakcontroller-linakcontroller-1  | Starting system message bus: dbus.
Connected AB:CD:EF:AB:CD:EFller-1  | Connecting
linakcontroller-linakcontroller-1  | Capabilities: {'memSize': 2, 'autoUp': True, 'autoDown': True, 'bleAllow': True, 'hasDisplay': False, 'hasLight': True}
linakcontroller-linakcontroller-1  | User ID: 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11
linakcontroller-linakcontroller-1  | Base height from desk:  626mm
linakcontroller-linakcontroller-1  | Server listening
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant