Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
 internal InternalLogger(string loggerIdentifier)
 {
     Identifier = loggerIdentifier ?? throw new ArgumentNullException(nameof(loggerIdentifier));
     LogModule  = InternalLogManager.GetOrCreateLogger(Identifier);
 }