/// <summary>
 /// Logger implementation.
 /// </summary>
 /// <param name="level">Log level.</param>
 /// <param name="message">Message.</param>
 public override void Log(HtLogLevel level, string message)
 {
     switch (level)
     {
         case HtLogLevel.Debug:
             Debug.Log("[DEBUG]" + message);break;
         case HtLogLevel.Info:
             Debug.Log("[INFO]" + message);break;
         case HtLogLevel.Warning:
             Debug.LogWarning("[WARN]" + message); break;
         case HtLogLevel.Error:
             Debug.LogError("[ERROR]" + message); break;
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Logger implementation.
        /// </summary>
        /// <param name="level">Log level.</param>
        /// <param name="message">Message.</param>
        public override void Log(HtLogLevel level, string message)
        {
            switch (level)
            {
            case HtLogLevel.Debug:
                Debug.Log("[DEBUG]" + message); break;

            case HtLogLevel.Info:
                Debug.Log("[INFO]" + message); break;

            case HtLogLevel.Warning:
                Debug.LogWarning("[WARN]" + message); break;

            case HtLogLevel.Error:
                Debug.LogError("[ERROR]" + message); break;
            }
        }
Ejemplo n.º 3
0
 public abstract void Log(HtLogLevel level, string message);
Ejemplo n.º 4
0
 internal static void Log(HtLogLevel level, string format, params object[] args)
 {
     Logger.Log(level, string.Format(format, args));
 }
Ejemplo n.º 5
0
 public override void Log(HtLogLevel level, string message)
 {
     Console.WriteLine("{0} : {1}", level, message);
 }
 public override void Log(HtLogLevel level, string message) { Console.WriteLine("{0} : {1}", level, message); }
 internal static void Log(HtLogLevel level, string format, params object[] args) { Logger.Log(level, string.Format(format, args)); }
Ejemplo n.º 8
0
 public abstract void Log(HtLogLevel level, string message);