Add clap derive helper for libpt-log #75

Closed
opened 2024-03-21 09:43:05 +01:00 by cscherrNT · 2 comments
Collaborator

I often use clap derive, it would be nice to be able to set all logger options from a CLI. This interface could be standardized in libpt.

Logging

  • Automatic Initialization of logger
  • Support verbosity setting: -vvv would set the log level to TRACE, -v would set it to INFO and such

General

  • Provide some generic CLI struct, that we can extend?
  • Some Attribute that displays the author and a long about, as clap is needlessly complicated at that.
    • Maybe we could contribute something back to clap?
I often use clap derive, it would be nice to be able to set all logger options from a CLI. This interface could be standardized in `libpt`. **Logging** - [ ] Automatic Initialization of logger - [ ] Support verbosity setting: `-vvv` would set the log level to `TRACE`, `-v` would set it to `INFO` and such **General** - [ ] Provide some generic CLI struct, that we can extend? - [ ] Some Attribute that displays the author and a long about, as clap is needlessly complicated at that. - Maybe we could contribute something back to `clap`?
cscherrNT added the
Kind/Feature
Reviewed
Confirmed
Priority
Medium
labels 2024-03-21 09:43:05 +01:00
Author
Collaborator

it would be nice to just add a new cli module with a cli feature

it would be nice to just add a new `cli` module with a `cli` feature
Owner

See #84

See #84
This repo is archived. You cannot comment on issues.
No Milestone
No project
No Assignees
2 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: PlexSheep/pt#75
No description provided.