コード例 #1
0
 public void Log(LogMessageLevelEnum level, string message, params object[] args)
 {
     foreach (ILogService service in register)
     {
         service.Log(level, message, args);
     }
 }
コード例 #2
0
        public void Log(LogMessageLevelEnum level, string message, params object[] args)
        {
            if (level < minimumLevel)
            {
                return;
            }

            TextWriter writer = GetLogWriter();

            writer.WriteLine($"[{level} {DateTime.Now:hh-mm-ss}]: {message ?? "NULL"}");
            WriteObjects(args, writer);
        }
コード例 #3
0
 public void Log(LogMessageLevelEnum level, string message, params object[] args)
 {
     // no operation
 }
コード例 #4
0
 public LogMessage(LogMessageLevelEnum level, string message, params object[] args)
 {
     Level     = level;
     Message   = message;
     Arguments = new List <object>(args);
 }
コード例 #5
0
 public LogMessage(LogMessageLevelEnum level, string message)
 {
     Level     = level;
     Message   = message;
     Arguments = new List <object>();
 }
コード例 #6
0
 public UserAppDataLogService(LogMessageLevelEnum minimumLevel)
 {
     this.minimumLevel = minimumLevel;
 }
コード例 #7
0
 public void Log(LogMessageLevelEnum level, string message, params object[] args)
 {
     Debug.WriteLine($"[{level}]: {message ?? "NULL"}");
     WriteObjectsToDebug(args);
 }