C# Class PayPal.Log.TraceSourceUtil

Trace Source utility for the given Type having listener or the closest "parent" TraceRoute that has listeners
Mostra file Open project: paypal/PayPal-NET-SDK Class Usage Examples

Public Methods

Method Description
GetTraceSource ( Type givenType ) : TraceSource

Gets the TraceSource for the given Type having SourceLevels.All Returns null if there are no listeners configured for given Type or the closest "parent" TraceRoute that has listeners

GetTraceSource ( Type givenType, SourceLevels sourceLevels ) : TraceSource

Gets the TraceSource for the given Type and SourceLevels Returns null if there are no listeners configured for given Type or the closest "parent" TraceRoute that has listeners

Private Methods

Method Description
GetTraceSourceWithListeners ( string name, SourceLevels sourceLevels ) : TraceSource

Gets the closest "parent" TraceRoute that has listeners, or null otherwise

GetTraceSourceWithListenersSyncLock ( string name, SourceLevels sourceLevels ) : TraceSource

Gets the closest "parent" TraceRoute that has listeners, or null otherwise

Method Details

GetTraceSource() public static method

Gets the TraceSource for the given Type having SourceLevels.All Returns null if there are no listeners configured for given Type or the closest "parent" TraceRoute that has listeners
public static GetTraceSource ( Type givenType ) : TraceSource
givenType System.Type
return System.Diagnostics.TraceSource

GetTraceSource() public static method

Gets the TraceSource for the given Type and SourceLevels Returns null if there are no listeners configured for given Type or the closest "parent" TraceRoute that has listeners
public static GetTraceSource ( Type givenType, SourceLevels sourceLevels ) : TraceSource
givenType System.Type
sourceLevels SourceLevels
return System.Diagnostics.TraceSource