示例#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));
        }