Skip to content

Commit

Permalink
Document WOODPECKER_LOG_FILE (#3022)
Browse files Browse the repository at this point in the history
Missed from #2115 

Also rephrased the description a bit.

---------

Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
  • Loading branch information
pat-s and qwerty287 authored Dec 26, 2023
1 parent 5671956 commit df73d2c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/common/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ var GlobalLoggerFlags = []cli.Flag{
&cli.StringFlag{
EnvVars: []string{"WOODPECKER_LOG_FILE"},
Name: "log-file",
Usage: "where logs are written to. 'stdout' and 'stderr' can be used as special keywords",
Usage: "Output destination for logs. 'stdout' and 'stderr' can be used as special keywords.",
Value: "stderr",
},
&cli.BoolFlag{
Expand Down
7 changes: 7 additions & 0 deletions docs/docs/30-administration/10-server-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,13 @@ The following list describes all available server configuration options.
Configures the logging level. Possible values are `trace`, `debug`, `info`, `warn`, `error`, `fatal`, `panic`, `disabled` and empty.

### `WOODPECKER_LOG_FILE`

> Default: `stderr`
Output destination for logs.
'stdout' and 'stderr' can be used as special keywords.

### `WOODPECKER_LOG_XORM`

> Default: `false`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,13 @@ The following list describes all available server configuration options.
Configures the logging level. Possible values are `trace`, `debug`, `info`, `warn`, `error`, `fatal`, `panic`, `disabled` and empty.

### `WOODPECKER_LOG_FILE`

> Default: `stderr`
Output destination for logs.
'stdout' and 'stderr' can be used as special keywords.

### `WOODPECKER_LOG_XORM`

> Default: `false`
Expand Down

0 comments on commit df73d2c

Please sign in to comment.