예제 #1
0
        public static void WriteDebug(string message, object[] variables)
        {
            ILogSrv log       = ServiceLocator.Current.GetInstance <ILogSrv>();
            string  debugInfo = GetDebugInfo(variables);

            log.WriteTrace(new LogEntry(message, debugInfo, Severity.Debug));
        }
예제 #2
0
        public static void WriteTrace(string functionName, string message)
        {
            ILogSrv log = ServiceLocator.Current.GetInstance <ILogSrv>();

            log.WriteTrace(new LogEntry("Function", functionName, Severity.Trace));
        }
예제 #3
0
        public static void WriteWarning(string headline, string message)
        {
            ILogSrv log = ServiceLocator.Current.GetInstance <ILogSrv>();

            log.WriteTrace(new LogEntry(headline, message, Severity.Warning));
        }