mirror of
https://github.com/coder/coder.git
synced 2025-07-12 00:14:10 +00:00
feat: add stackdriver and json log options to coder server
(#5682)
This commit is contained in:
@ -471,6 +471,26 @@ func newConfig() *codersdk.DeploymentConfig {
|
||||
Default: false,
|
||||
},
|
||||
},
|
||||
Logging: &codersdk.LoggingConfig{
|
||||
Human: &codersdk.DeploymentConfigField[string]{
|
||||
Name: "Human Log Location",
|
||||
Usage: "Output human-readable logs to a given file.",
|
||||
Flag: "log-human",
|
||||
Default: "/dev/stderr",
|
||||
},
|
||||
JSON: &codersdk.DeploymentConfigField[string]{
|
||||
Name: "JSON Log Location",
|
||||
Usage: "Output JSON logs to a given file.",
|
||||
Flag: "log-json",
|
||||
Default: "",
|
||||
},
|
||||
Stackdriver: &codersdk.DeploymentConfigField[string]{
|
||||
Name: "Stackdriver Log Location",
|
||||
Usage: "Output Stackdriver compatible logs to a given file.",
|
||||
Flag: "log-stackdriver",
|
||||
Default: "",
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user