- Add global --quiet/-q flag to suppress non-error output - Add --json flag to verify, snapshot rm, and prune commands - Add config file permission check (warns if world/group readable) - Update TODO.md to remove completed items
26 lines
441 B
Go
26 lines
441 B
Go
package log
|
|
|
|
import (
|
|
"go.uber.org/fx"
|
|
)
|
|
|
|
// Module exports logging functionality for dependency injection.
|
|
var Module = fx.Module("log",
|
|
fx.Invoke(func(cfg Config) {
|
|
Initialize(cfg)
|
|
}),
|
|
)
|
|
|
|
// New creates a new logger configuration from provided options.
|
|
func New(opts LogOptions) Config {
|
|
return Config(opts)
|
|
}
|
|
|
|
// LogOptions are provided by the CLI.
|
|
type LogOptions struct {
|
|
Verbose bool
|
|
Debug bool
|
|
Cron bool
|
|
Quiet bool
|
|
}
|