Skip to content

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

@one-three-three-seven

Description

@one-three-three-seven

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions