Amazon.Runtime.Internal.Util.TraceSourceUtil.GetTraceSource C# (CSharp) Method

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
        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);
 }