Set the Logging Level (Optional)

You can set the logging level with the configuration LoggingLevel as part of the class IAgentConfiguration.

You can set LoggingLevel to one of the levels listed in the table below.

LevelDescription
Off Agent will emit no messages at all.
Error Only show errors and initial banner.This is the default.
Warn Warning level messages and above.
Info Information level messages and aboveMay be useful to the developer.
Debug Debug level messages and above.Useful for support personnel and developers.
Verbose

Verbose level messages and above.

Use verbose logging only for troubleshooting. Be sure to disable for production.

All All messages.

For example:

var config = AppDynamics.Agent.AgentConfiguration.Create("<#Your App Key#>");
config.LoggingLevel = AppDynamics.Agent.LoggingLevel.All;
AppDynamics.Agent.Instrumentation.InitWithConfiguration(config);