PostSharpAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​Backends.​TraceTrace­Collecting­Trace­ListenerRedirect­Logging­To­Post­Sharp
Open sandboxFocus

TraceCollectingTraceListener.RedirectLoggingToPostSharp Method

RedirectLoggingToPostSharp()

Redirects all Trace events to be sent to PostSharp and clears all other listeners from Listeners. Those listeners are returned in the return value.

Declaration
public static List<TraceListener> RedirectLoggingToPostSharp()
Returns
Type Description
List<TraceListener>

Listeners previously in the Listeners collections, excluding the new TraceCollectingTraceListener.