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

Feature Request: Option to disable timestamp in console output #3101

Closed
one-three-three-seven opened this issue Mar 18, 2022 · 0 comments
Closed

Comments

@one-three-three-seven
Copy link

one-three-three-seven commented Mar 18, 2022

Description

I'm using systemd to manage Lighthouse and systemd does its own timestamping. It would make the logfiles nicer and smaller if there would be an option to disable the Lighthouse timestamping.

Present Behaviour

Currently the logfiles of systemd do look like this:

Mar 18 12:47:36 hostname lighthouse[1554781]: Mar 18 11:47:36.387 INFO New block received                      root: 0xdabf1994c1c90eb947fa16dfc7b303bbe0a6e03261462a7319b4e230d98559ee, slot: 3398336

Expected Behaviour

It would be nicer this way:

Mar 18 12:47:36 hostname lighthouse[1554781]: INFO New block received                      root: 0xdabf1994c1c90eb947fa16dfc7b303bbe0a6e03261462a7319b4e230d98559ee, slot: 3398336

Steps to resolve

I would suggest a new flag like --disable-timestamp-output. This should only affect the console output (stdout, stderr), not the Lighthouse logfiles.

Another option could be --log-format SYSTEMD, --log-format JSON does already exist.

xrchz added a commit to xrchz/lighthouse that referenced this issue Sep 17, 2022
## Issues Addressed

Closes sigp#3101

## Proposed Changes

Add global flag to suppress timestamps in the terminal logger.
Woodpile37 pushed a commit to Woodpile37/lighthouse that referenced this issue Jan 6, 2024
## Issues Addressed

Closes sigp#3101

## Proposed Changes

Add global flag to suppress timestamps in the terminal logger.
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