mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-25 22:36:56 +00:00
Use zerolog
This commit is contained in:
parent
bf910f4df4
commit
1d6d90f387
10 changed files with 105 additions and 295 deletions
12
cmd/flags.go
12
cmd/flags.go
|
@ -63,24 +63,12 @@ var ServeFlags = []cli.Flag{
|
|||
// TODO: desc
|
||||
EnvVars: []string{"ENABLE_HTTP_SERVER"},
|
||||
},
|
||||
&cli.StringSliceFlag{
|
||||
Name: "log-output",
|
||||
Value: cli.NewStringSlice("console"),
|
||||
Usage: "specify where the log will be outputed. Multiple options can be chosen, possible options: console, file",
|
||||
EnvVars: []string{"LOG_OUTPUT"},
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "log-level",
|
||||
Value: "warn",
|
||||
Usage: "specify at which log level should be logged. Possible options: info, warn, error, fatal",
|
||||
EnvVars: []string{"LOG_LEVEL"},
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "log-file",
|
||||
Value: "pages-server.log",
|
||||
Usage: "specify the log file. Only applies when file logging is enabled",
|
||||
EnvVars: []string{"LOG_FILE"},
|
||||
},
|
||||
|
||||
// ACME
|
||||
&cli.StringFlag{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue