Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(all): add flags for logger #447

Merged
merged 1 commit into from
Jun 1, 2023
Merged

feat(all): add flags for logger #447

merged 1 commit into from
Jun 1, 2023

Conversation

ijsong
Copy link
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
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
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