Skip to content

feat(all): add flags for logger#447

Merged
ijsong merged 1 commit intomainfrom
common_logger_flags
Jun 1, 2023
Merged

feat(all): add flags for logger#447
ijsong merged 1 commit intomainfrom
common_logger_flags

Conversation

@ijsong
Copy link
Copy Markdown
Member

@ijsong ijsong commented May 16, 2023

What this PR does

This PR adds common flags for logging to package internal/flags. Those flags include the
followings:

  • --logdir
  • --logtostderr
  • --logfile-max-backups
  • --logfile-retention-days
  • --logfile-max-size-mb
  • --logfile-name-utc
  • --logfile-compression
  • --log-human-readable
  • --loglevel

Those are very common. Hence all daemons can use them.

Which issue(s) this PR resolves

Resolves #439

This PR adds common flags for logging to package `internal/flags`. Those flags include the
followings:

- `--logdir`
- `--logtostderr`
- `--logfile-max-backups`
- `--logfile-retention-days`
- `--logfile-max-size-mb`
- `--logfile-name-utc`
- `--logfile-compression`
- `--log-human-readable`
- `--loglevel`

Those are very common. Hence all daemons can use them.

Resolves #439
@ijsong ijsong force-pushed the mr_uncommit_report_pool branch from fe4c70e to 4c624da Compare June 1, 2023 03:31
@ijsong ijsong force-pushed the common_logger_flags branch from 2218a40 to 7efe407 Compare June 1, 2023 03:31
@ijsong
Copy link
Copy Markdown
Member Author

ijsong commented Jun 1, 2023

@ijsong started a stack merge that includes this pull request via Graphite.

Base automatically changed from mr_uncommit_report_pool to main June 1, 2023 05:27
@ijsong ijsong merged commit f2e1193 into main Jun 1, 2023
@ijsong
Copy link
Copy Markdown
Member Author

ijsong commented Jun 1, 2023

@ijsong merged this pull request with Graphite.

@ijsong ijsong deleted the common_logger_flags branch June 1, 2023 05:27
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

Successfully merging this pull request may close these issues.

all: add CLI flags for logger

2 participants