示例#1
0
 /// <summary>Writes a formatted line to the log with the specified
 /// severity level!</summary>
 /// <param name="level">Severity level of this log message.</param>
 /// <param name="text">Formatted text with color tags! See the Log
 /// class docs for for guidance on color tags.</param>
 public static void Write(LogLevel level, string text)
 => NativeAPI.log_write(level, text);
示例#2
0
 /// <summary>Writes a formatted line to the log with the specified
 /// severity level!</summary>
 /// <param name="level">Severity level of this log message.</param>
 /// <param name="text">Formatted text with color tags! See the Log
 /// class docs for for guidance on color tags.</param>
 /// <param name="items">Format arguments.</param>
 public static void Write(LogLevel level, string text, params object[] items)
 => NativeAPI.log_write(level, string.Format(text, items));