'Declaration
Public NotInheritable Class LogListener Inherits System.Diagnostics.TraceListener
public sealed class LogListener : System.Diagnostics.TraceListener
'Declaration
Public NotInheritable Class LogListener Inherits System.Diagnostics.TraceListener
public sealed class LogListener : System.Diagnostics.TraceListener
This class is not normally used directly but instead is registered in the App.Config file according to the example above.
For more information on how to record log messages with the Loupe Agent, see the Log Class.
For more information on logging using Trace, see Developer's Reference - Logging - Using with Trace.
<?xml version="1.0" encoding="utf-8" ?> <configuration> <!-- You may already have a <system.diagnostics> section in your configuration file, possibly also including the <trace> and <listeners> tags. If this is the case, you only need to add the line that starts <add name="gibraltar" ... /> to the file --> <system.diagnostics> <trace> <listeners> <add name="gibraltar" type="Gibraltar.Agent.LogListener, Gibraltar.Agent"/> </listeners> </trace> </system.diagnostics> </configuration>
System.Object
System.MarshalByRefObject
System.Diagnostics.TraceListener
Gibraltar.Agent.LogListener
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
LogListener Members
Gibraltar.Agent Namespace
Logging - Using with Trace