Skip to content

Expose logging settings through CLI and environment #22

Description

@birdzix

It would be nice to be able to configure the logging options via command line args and/or environment variables. For example, we could provide --file-log-level and --stream-log-level as command line args for configuring the logging levels.

If a setting has a command line arg defined, use that (highest priority).
If a setting has an environment var defined and no command line arg, use the env var.
If no env var is set and no command line arg is passed, use the default value.

It may be worth investigating collections.ChainMap for this.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions