public void Log(object message, EntryGravity gravity)
 {
     try
     {
         writer.WriteLine(string.Format("[{0} {1}] ; {2} ; {3} ; {4}", Today, Hour, Elapsed, gravity.ToString(), message));
     }
     catch
     {
         Dispose();
     }
 }
Exemple #2
0
        public void Log(object message, EntryGravity gravity)
        {
            if (message == null)
            {
                throw new ArgumentNullException("message");
            }

            foreach (var channel in channels)
            {
                channel.Log(message, gravity);
            }
        }
        public void Log(object message, EntryGravity gravity)
        {
            string messageStr = message.ToString();

            switch (gravity)
            {
            case EntryGravity.trace:
            case EntryGravity.info: Debug.Log(messageStr);
                break;

            case EntryGravity.Warning: Debug.LogWarning(messageStr);
                break;

            case EntryGravity.ERROR:
            case EntryGravity.CRITICAL: Debug.LogError(messageStr);
                break;
            }
        }
Exemple #4
0
 public void Log(object message, EntryGravity gravity)
 {
     Assert.Pass();
 }