Skip to content
This repository was archived by the owner on Jan 28, 2022. It is now read-only.
This repository was archived by the owner on Jan 28, 2022. It is now read-only.

add flag to log to syslog #5

@yoshuawuyts

Description

@yoshuawuyts

We should add a {flag, method, option} to enable logging to the syslog provider.

An interesting thing here is that systemd sets $JOURNAL_STREAM when it manages a process, so we could catch that and automatically switch it over to the syslog provider. This opens a few questions:

  1. Do we need to add a flag for this? Is detecting an env var enough?
  2. Should we remove the --pretty option, and always use a pretty-printer. Right now there's not too much difference between the two anyway.
  3. Can we still apply filtering using the env logger provider?

Refs

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