示例#1
0
        internal InternalLogger()
        {
            MethodBase?methodInfo = new StackTrace().GetFrame(1)?.GetMethod();
            string?    className  = methodInfo?.ReflectedType?.Name;

            Identifier = !string.IsNullOrEmpty(className) ? className : "Unspecified";
            LogModule  = InternalLogManager.GetOrCreateLogger(Identifier);
        }
示例#2
0
 internal InternalLogger(string loggerIdentifier)
 {
     Identifier = loggerIdentifier ?? throw new ArgumentNullException(nameof(loggerIdentifier));
     LogModule  = InternalLogManager.GetOrCreateLogger(Identifier);
 }