-
Notifications
You must be signed in to change notification settings - Fork 214
Description
A hook is provided in the ASP.NET Full Framework HTTP module to allow users to implement an IApmLogger to integrate with their own logging framework. When no logger implementation is provided, the integration uses a ConsoleLogger to write APM agent logs which writes to Console.Out. For an ASP.NET application running in IIS, Console.Out is a null stream, such that logs are not captured.
A default IApmLogger for ASP.NET Full Framework that uses System.Diagnostics.Trace would allow a user to configure a TraceListener in web.config to capture APM agent logs, without needing to implement an IApmLogger; a user may still want to implement an IApmLogger for better integration with their logging framework of choice, but the default logger implementation would at least allow capturing of agent logs, with some configuration file changes.
System.Diagnostics.Trace is dependent on the TRACE compiler constant, which is specified by default for both Debug and Release build configurations.