You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
This commit adds a logger implementation, TraceLogger, that
writes agent logs to a TraceSource with name "Elastic.Apm".
This logger is configured as the default logger for
ASP.NET Full Framework applications, which can use configuration
to write log messages to file, debug window, Windows event log, etc.
Add a section to docs with an example of how to configure
the logger in web.config.
Move the default log level from ConsoleLogger into DefaultValues.
Closeselastic#1263
This commit adds a logger implementation, TraceLogger, that
writes agent logs to a TraceSource with name "Elastic.Apm".
This logger is configured as the default logger for
ASP.NET Full Framework applications, which can use configuration
to write log messages to file, debug window, Windows event log, etc.
Add a section to docs with an example of how to configure
the logger in web.config.
Move the default log level from ConsoleLogger into DefaultValues.
Closes#1263
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 aConsoleLogger
to write APM agent logs which writes toConsole.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 usesSystem.Diagnostics.Trace
would allow a user to configure aTraceListener
in web.config to capture APM agent logs, without needing to implement anIApmLogger
; a user may still want to implement anIApmLogger
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 theTRACE
compiler constant, which is specified by default for bothDebug
andRelease
build configurations.The text was updated successfully, but these errors were encountered: