Proxy Log Level
The Linkerd proxy’s log level can be configured via the:
LINKERD_PROXY_LOGenvironment variable—proxy-log-levelCLI flag of theinstall,injectandupgradecommandsconfig.linkerd.io/proxy-log-levelannotation (refer to Proxy Configurationfor more information on using config annotations).The log level is a comma-separated list of log directives, which isbased on the logging syntax of theenv_loggercrate.
A log directive consists of either:
- A level (e.g.
info), which sets the global log level, or - A module path (e.g.
fooorfoo::bar::baz), or A module path followed by an equals sign and a level (e.g.
foo=warnorfoo::bar::baz=debug), which sets the log level for that moduleA level is one of:tracedebuginfowarnerrorA module path represents the path to a Rust module. It consists of one or moremodule names, separated by::.
A module name starts with a letter, and consists of alphanumeric characters and _.
The proxy’s default log level is set to warn,linkerd2_proxy=info.