///<summary> /// Enable logging with the given logging level for instances of the given type or instances of types derived from the given type ///</summary> public static void EnableLogging <T>(LoggingLevel loggingLevel) { DebugLogger.EnableLogging(typeof(T), loggingLevel); }
private static void InternalWriteLine(object caller, LoggingLevel loggingLevel, Func <string> message) { DebugLogger.InternalDoIfLoggingEnabled(caller, loggingLevel, () => Debug.WriteLine($"{DebugLogger.GetCallerId(caller)}: {message()}")); }