mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat(cli): support fine-grained server log filtering (#8748)
This commit is contained in:
+5
-5
@@ -83,12 +83,13 @@ Use a YAML configuration file when your server launch become unwieldy.
|
||||
--log-json string, $CODER_LOGGING_JSON
|
||||
Output JSON logs to a given file.
|
||||
|
||||
-l, --log-filter string-array, $CODER_LOG_FILTER
|
||||
Filter debug logs by matching against a given regex. Use .* to match
|
||||
all debug logs.
|
||||
|
||||
--log-stackdriver string, $CODER_LOGGING_STACKDRIVER
|
||||
Output Stackdriver compatible logs to a given file.
|
||||
|
||||
-v, --verbose bool, $CODER_VERBOSE
|
||||
Output debug-level logs.
|
||||
|
||||
[1mIntrospection / Prometheus Options[0m
|
||||
--prometheus-address host:port, $CODER_PROMETHEUS_ADDRESS (default: 127.0.0.1:2112)
|
||||
The bind address to serve prometheus metrics.
|
||||
@@ -106,8 +107,7 @@ Use a YAML configuration file when your server launch become unwieldy.
|
||||
--trace-logs bool, $CODER_TRACE_LOGS
|
||||
Enables capturing of logs as events in traces. This is useful for
|
||||
debugging, but may result in a very large amount of events being sent
|
||||
to the tracing backend which may incur significant costs. If the
|
||||
verbose flag was supplied, debug-level logs will be included.
|
||||
to the tracing backend which may incur significant costs.
|
||||
|
||||
--trace bool, $CODER_TRACE_ENABLE
|
||||
Whether application tracing data is collected. It exports to a backend
|
||||
|
||||
+5
-2
@@ -183,14 +183,17 @@ introspection:
|
||||
enable: false
|
||||
# Enables capturing of logs as events in traces. This is useful for debugging, but
|
||||
# may result in a very large amount of events being sent to the tracing backend
|
||||
# which may incur significant costs. If the verbose flag was supplied, debug-level
|
||||
# logs will be included.
|
||||
# which may incur significant costs.
|
||||
# (default: <unset>, type: bool)
|
||||
captureLogs: false
|
||||
logging:
|
||||
# Output debug-level logs.
|
||||
# (default: <unset>, type: bool)
|
||||
verbose: false
|
||||
# Filter debug logs by matching against a given regex. Use .* to match all debug
|
||||
# logs.
|
||||
# (default: <unset>, type: string-array)
|
||||
filter: []
|
||||
# Output human-readable logs to a given file.
|
||||
# (default: /dev/stderr, type: string)
|
||||
humanPath: /dev/stderr
|
||||
|
||||
Reference in New Issue
Block a user