Esempio n. 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));
        }
Esempio n. 2
0
        public static void WriteTrace(string functionName, string message)
        {
            ILogSrv log = ServiceLocator.Current.GetInstance <ILogSrv>();

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

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