C# Class Amazon.Runtime.Internal.Util.TraceSourceUtil

Creates TraceRoute for a given Type or the closest "parent" that has a listener configured. Example: if type is Amazon.DynamoDB.AmazonDynamoDBClient, listeners can be configured for: -Amazon.DynamoDB.AmazonDynamoDBClient -Amazon.DynamoDB -Amazon The first matching TraceSource with listeners will be used. If no listeners are configured for type or one of its "parents", will return null.
Mostrar archivo Open project: scopely/aws-sdk-net Class Usage Examples

Public Methods

Method Description
GetTraceSource ( Type targetType ) : TraceSource

Gets a TraceSource for given Type with SourceLevels.All. If there are no listeners configured for targetType or one of its "parents", returns null.

GetTraceSource ( Type targetType, SourceLevels sourceLevels ) : TraceSource

Gets a TraceSource for given Type and SourceLevels. If there are no listeners configured for targetType or one of its "parents", returns null.

Private Methods

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

Method Details

GetTraceSource() public static method

Gets a TraceSource for given Type with SourceLevels.All. If there are no listeners configured for targetType or one of its "parents", returns null.
public static GetTraceSource ( Type targetType ) : TraceSource
targetType System.Type
return System.Diagnostics.TraceSource

GetTraceSource() public static method

Gets a TraceSource for given Type and SourceLevels. If there are no listeners configured for targetType or one of its "parents", returns null.
public static GetTraceSource ( Type targetType, SourceLevels sourceLevels ) : TraceSource
targetType System.Type
sourceLevels SourceLevels
return System.Diagnostics.TraceSource