/// <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;
     }
 }
        /// <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;
            }
        }
 public abstract void Log(HtLogLevel level, string message);
Exemple #4
0
 internal static void Log(HtLogLevel level, string format, params object[] args)
 {
     Logger.Log(level, string.Format(format, args));
 }
Exemple #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)); }
 public abstract void Log(HtLogLevel level, string message);