Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
 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);
 }