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(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); }