This page provides an overview of logging for the .NET Agent on Windows.
The .NET Agent hosts log files in the
To learn how logs are organized into sets that rollover, see Agent Log Files.
Log File Size
Within a set, the first file for the agent log can reach 5 MB. This file never gets deleted because it contains valuable information about the context in which the agent was started.
Each of the remaining logs in the set can reach a maximum of 5 MB.
To allow for several restarts and all possible logs that could be generated (.NET Agent, Business Transaction, and REST), the maximum number of rollover logs is five. The maximum size per set is 5 MB + (5 X 5M B) = 30 MB.
Some log files, such as SamplingInfo and Winston are configured differently and can be 9 MB in size with only two archive files.
Profiler logging is different; a logging framework called Boost logs to the Profiler folder and creates one file per instrumented process. While Boost uses the archive files and max size, it has two other limits: one to limit the number of files in the Profiler folder (defaults to 50) and the other to limit the max size (defaults to 30 MB).
Control the .NET Agent Logging Level
You control the logging level for the .NET Agent by changing the value of the
minlevel parameter in the
AppDynamicsAgentLog.config file found in the .NET Agent logs directory.
The log configuration is per server. The .NET Machine Agent and the .NET Agent read the same configuration file and write to the same set of output files.