public static void OutPrint(SimpleLogger.LogLevelType logLevel, string msg, string fromMethod, string fromClass = null, string fromNamespace = null) { var locationObject = new SimpleLogger.LocationObject { Namespace = fromNamespace ?? "com.LoanTek.API.OwinWrapper", ClassName = fromClass ?? "Global", MethodName = fromMethod }; errorLogger.Log(logLevel, msg, locationObject); }
public static void OutPrint(string msg, SimpleLogger.LocationObject location, SimpleLogger.LogLevelType logLevel = SimpleLogger.LogLevelType.ERROR) { if (Debugger.IsAttached) { errorLogger.LogTo = SimpleLogger.LogToType.DEBUG; } errorLogger.Log(logLevel, msg, location); }
public static void OutPrint(string msg, string fromNamespace, string fromClass, string fromMethod, SimpleLogger.LogLevelType logLevel = SimpleLogger.LogLevelType.ERROR) { OutPrint(msg, new SimpleLogger.LocationObject() { Namespace = fromNamespace, ClassName = fromClass, MethodName = fromMethod }, logLevel); }