From 64efaec94e07c78c3c18db9033cd4bb335cbad19 Mon Sep 17 00:00:00 2001 From: Marty Tippin <120425148+tippmar-nr@users.noreply.github.com> Date: Fri, 17 Jan 2025 09:09:28 -0600 Subject: [PATCH] docs(dotnet): Update log configuration documentations to reflect behavior in the latest agent version. --- .../configuration/net-agent-configuration.mdx | 66 ++++++++++--------- 1 file changed, 34 insertions(+), 32 deletions(-) diff --git a/src/content/docs/apm/agents/net-agent/configuration/net-agent-configuration.mdx b/src/content/docs/apm/agents/net-agent/configuration/net-agent-configuration.mdx index 52d71711483..0735b197e81 100644 --- a/src/content/docs/apm/agents/net-agent/configuration/net-agent-configuration.mdx +++ b/src/content/docs/apm/agents/net-agent/configuration/net-agent-configuration.mdx @@ -1056,7 +1056,7 @@ The `proxy` element supports the following attributes: ### Log element [#log] -The `log` element is a child of the `configuration` element. The `log` element configures New Relic's logging . The agent generates its own log file to keep its logging information separate from your application's logs. +The `log` element is a child of the `configuration` element. The `log` element configures New Relic's logging. The agent generates its own log file to keep its logging information separate from your application's logs. ```xml @@ -1082,7 +1082,7 @@ The `log` element supports the following attributes: @@ -1092,32 +1092,18 @@ The `log` element supports the following attributes:
- String + Boolean
- `info` + `true`
- Defines the level of detail recorded in the log file. Possible values, in increasing order of detail, are: - - * `off` - * `error` - * `warn` - * `info` - * `debug` - * `finest` - * `all` - - Alternatively, set the `NEWRELIC_LOG_LEVEL` environment variable in the application's environment. - - - Increasing the log level will increase New Relic's performance impact. - + When set to `false`, all logging is disabled. Alternatively, set the `NEW_RELIC_LOG_ENABLED` environment variable in the application's environment.
@@ -1127,7 +1113,7 @@ The `log` element supports the following attributes: @@ -1137,18 +1123,32 @@ The `log` element supports the following attributes:
- Boolean + String
- `false` + `info`
- Records all data sent to and received from New Relic in both an auditlog log file and the standard log file. + Defines the level of detail recorded in the log file. Possible values, in increasing order of detail, are: + + * `off` + * `error` + * `warn` + * `info` + * `debug` + * `finest` + * `all` + + Alternatively, set the `NEWRELIC_LOG_LEVEL` environment variable in the application's environment. + + + Increasing the log level will increase New Relic's performance impact. +
@@ -1174,12 +1174,12 @@ The `log` element supports the following attributes:
- Send log messages to the console, in addition to the log file. Alternatively, set the `NEW_RELIC_LOG_CONSOLE` environment variable in the application's environment. + Records all data sent to and received from New Relic in both an auditlog log file and the standard log file. Ignored if `enabled` is set to `false` or `console` is set to `true`.
@@ -1199,13 +1199,15 @@ The `log` element supports the following attributes:
- `true` + `false`
- If disabled, no logging is attempted. Intended for read-only file systems. Alternatively, set the `NEW_RELIC_LOG_ENABLED` environment variable in the application's environment. + Send log messages to the console instead of the log file (in agent versions prior to 10.35.0, logs are sent to both the console and the log file). Ignored if `enabled` is set to `false`. Alternatively, set the `NEW_RELIC_LOG_CONSOLE` environment variable in the application's environment. + + Console logging in the profiler is limited to `info` level and higher due to performance considerations.