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:
goodspark
2023-05-24 07:32:40 -07:00
committed by GitHub
parent b6c8e5be48
commit 71c52ea93c
2 changed files with 86 additions and 9 deletions

View File

@ -3,6 +3,15 @@ Usage: coder agent [flags]
Starts the Coder workspace agent.
Options
--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.