ANTS Profiler

Latest version: 4.3

ANTS Profiler

Knowledge Base

Enabling logs to track the profiling session

Category: How do I?
Date: 02 Jan 2009
Product: ANTS Profiler
Versions: 3,4

For diagnostic purposes and when directed to by Red Gate Technical Support, it is possible to direct ANTS Profiler to create logs of the profiling session.

In version 3 of ANTS Profiler, Create a directory called "logs" in the ANTS Profiler installation directory. Restart the ANTS Profiler service and ANTS Profiler itself and try again.

Two or three log files should be created in the logs directory. One is for the ANTS Profiler Service, one is for the profiling session, and one is activities that occur in the application being profiled (the RedGate.Profiler.Core2.dll). Depending on the type of application being profiled, one of these log files may be absent. If the program did not load managed code, for instance, the CoreLog will be absent. If the application being profiled was not an IIS web application, the service log will be absent.

In version 4 of ANTS Performance Profiler, the logging is more configurable because it is using the log4net API (http://logging.apache.org/log4net/index.html). All logging options can be configured in an XML file called LoggingConfiguration.xml, which can be found at "%userprofile%\Local Settings\Application Data\Red Gate\ANTS Performance Profiler 4\".

As in version 3 of the logger, two classes of log can be configured: RedGate.Profiler.Logging and RedGate.Profiler.UI. Setting the level value will cause the logging to be either more or less verbose. The available logging levels are FATAL, ERROR, WARN, INFO, and DEBUG, going from the least to most verbal. When logging is configured, the logs will be written in the "%userprofile%\Local Settings\Application Data\Red Gate\ANTS Performance Profiler 4\" folder.

ANTS Memory Profiler version 4 has carried over the logging interface from version 3, so in order to create profiler logs, you should create a subfolder called "logs" in the "%programfiles%\red gate\ants profiler 4\memory" folder.

Document ID: KB200701000002 Keywords: ants, profiler, logging,logs,howto,instructions

Was this article helpful?

Search support
Forums
Visit the ANTS Profiler forum.

ANTS Profiler

all products