internal InternalLogger() { MethodBase?methodInfo = new StackTrace().GetFrame(1)?.GetMethod(); string? className = methodInfo?.ReflectedType?.Name; Identifier = !string.IsNullOrEmpty(className) ? className : "Unspecified"; LogModule = InternalLogManager.GetOrCreateLogger(Identifier); }
internal InternalLogger(string loggerIdentifier) { Identifier = loggerIdentifier ?? throw new ArgumentNullException(nameof(loggerIdentifier)); LogModule = InternalLogManager.GetOrCreateLogger(Identifier); }