mirror of
https://github.com/coder/coder.git
synced 2025-07-09 11:45:56 +00:00
feat: Add logging options for coder agent (#7474)
Similar to logging options in the coderd server, but for the agent running in workspaces. Meant to make hollistic log collection and querying simpler.
This commit is contained in:
9
cli/testdata/coder_agent_--help.golden
vendored
9
cli/testdata/coder_agent_--help.golden
vendored
@ -3,6 +3,15 @@ Usage: coder agent [flags]
|
||||
Starts the Coder workspace agent.
|
||||
|
||||
[1mOptions[0m
|
||||
--log-human string, $CODER_AGENT_LOGGING_HUMAN (default: /dev/stderr)
|
||||
Output human-readable logs to a given file.
|
||||
|
||||
--log-json string, $CODER_AGENT_LOGGING_JSON
|
||||
Output JSON logs to a given file.
|
||||
|
||||
--log-stackdriver string, $CODER_AGENT_LOGGING_STACKDRIVER
|
||||
Output Stackdriver compatible logs to a given file.
|
||||
|
||||
--auth string, $CODER_AGENT_AUTH (default: token)
|
||||
Specify the authentication type to use for the agent.
|
||||
|
||||
|
Reference in New Issue
Block a user