Skip to content

all: add CLI flags for logger #439

@ijsong

Description

@ijsong

Using flags for logging in daemons, such as varlogsn, varlogadm, and varlogmr, can be frustrating due to inconsistent CLI flag options. This inconsistency often results in errors during program execution. Furthermore, some applications, like varlogmr, may not provide all necessary logging options.

varlogsn

   --log-dir value, --logdir value
   --logtostderr
   --logfile-retention-days value, --log-file-retention-days value
   --logfile-compression, --log-file-compression
   --loglevel value, --log-level value

varlogadm

   --logdir value, --log-dir value
   --logtostderr, --log-to-stderr
   --logfile-retention-days value, --log-file-retention-days value
   --logfile-compression, --log-file-compression 
   --loglevel value, --log-level value

vmr

   --log-dir value

I omitted environment variables; we can also find inconsistencies between them easily.

Reviewing the logging flags and ensuring their consistency by including any missing ones is necessary.

Metadata

Metadata

Assignees

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