This is a cache of https://www.elastic.co/guide/en/apm/agent/dotnet/current/config-supportability.html. It is a snapshot of the page at 2024-08-31T00:58:42.120+0000.
Supportability configuration options | APM .NET Agent Reference [1.x] | Elastic

Supportability configuration options

edit

LogLevel

edit

dynamic config

Sets the logging level for the agent.

Valid options: Critical, Error, Warning, Info, Debug, Trace and None (None disables the logging).

The UseElasticApm() extension offers an overload to pass an IConfiguration instance to the agent. When configuring your agent in this way, as is typical in an ASP.NET Core application, you must instead set the LogLevel for the internal APM logger under the Logging section of appsettings.json. More details, including a sample configuration file are available in Configuration on ASP.NET Core.

Environment variable name IConfiguration or web.config key

ELASTIC_APM_LOG_LEVEL

ElasticApm:LogLevel

Default Type

Error

String