Exemplo n.º 1
0
 /// <summary>
 /// Log a message to the Unity console with a given log level. If no log level
 /// is provided, the default is Info (LogLevel.Info).
 /// </summary>
 /// <param name="message">Message to log.</param>
 /// <param name="messageLevel">Log level to use for the message.</param>
 public static void Log(string message, LogLevels messageLevel = LogLevels.Info)
 {
     if (DLogger.CanBeLogged(messageLevel))
     {
         DLogger.transport.Log(DLogger.FormatMessage(message));
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Log a message with the Trace (LogLevel.Trace) log level. Delegates to DLogger.Log.
 /// </summary>
 /// <param name="message">Message to log.</param>
 public static void Trace(string message)
 {
     DLogger.Log(message, LogLevels.Trace);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Log a message with the All (LogLevel.All) log level. Delegates to DLogger.Log.
 /// </summary>
 /// <param name="message">Message to log.</param>
 public static void All(string message)
 {
     DLogger.Log(message, LogLevels.All);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Log a message with the Fatal (LogLevel.Fatal) log level. Delegates to DLogger.Log.
 /// </summary>
 /// <param name="message">Message to log.</param>
 public static void Fatal(string message)
 {
     DLogger.Log(message, LogLevels.Fatal);
 }
Exemplo n.º 5
0
 /// <summary>
 /// Log a message with the Error (LogLevel.Error) log level. Delegates to LoDLoggergger.Log.
 /// </summary>
 /// <param name="message">Message to log.</param>
 public static void Error(string message)
 {
     DLogger.Log(message, LogLevels.Error);
 }
Exemplo n.º 6
0
 /// <summary>
 /// Log a message with the Warn (LogLevel.Warn) log level. Delegates to DLogger.Log.
 /// </summary>
 /// <param name="message">Message to log.</param>
 public static void Warn(string message)
 {
     DLogger.Log(message, LogLevels.Warn);
 }
Exemplo n.º 7
0
 /// <summary>
 /// Log a message with the Info (LogLevel.Info) log level. Delegates to DLogger.Log.
 /// </summary>
 /// <param name="message">Message to log.</param>
 public static void Info(string message)
 {
     DLogger.Log(message, LogLevels.Info);
 }
Exemplo n.º 8
0
 /// <summary>
 /// Log a message with the Debug (LogLevel.Debug) log level. Delegates to DLogger.Log.
 /// </summary>
 /// <param name="message">Message to log.</param>
 public static void Debug(string message)
 {
     DLogger.Log(message, LogLevels.Debug);
 }