C# Класс 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.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
GetTraceSourceWithListeners ( string name, SourceLevels sourceLevels ) : TraceSource
GetTraceSourceWithListeners_Locked ( string name, SourceLevels sourceLevels ) : TraceSource

Описание методов

GetTraceSource() публичный статический метод

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
Результат System.Diagnostics.TraceSource

GetTraceSource() публичный статический метод

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
Результат System.Diagnostics.TraceSource