Amazon.Runtime.Internal.Util.TraceSourceUtil.GetTraceSource C# (CSharp) Метод

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
        public static TraceSource GetTraceSource(Type targetType)
        {
            return GetTraceSource(targetType, SourceLevels.All);
        }

Same methods

TraceSourceUtil::GetTraceSource ( Type targetType, SourceLevels sourceLevels ) : TraceSource

Usage Example

Пример #1
0
 public InternalSystemDiagnosticsLogger(Type declaringType)
     : base(declaringType)
 {
     this.trace = TraceSourceUtil.GetTraceSource(declaringType);
 }