示例#1
0
 /// <summary>
 /// Posts a line of text to the log.
 /// </summary>
 /// <param name="postType">Type of post to send.</param>
 /// <param name="text">Text to post.</param>
 public static void Post(LogPostType postType, string text)
 {
     Interops.LogPosting.Post((int)postType, text);
 }
示例#2
0
文件: Log.cs 项目: iniside/CryCIL
 /// <summary>
 /// Posts a line of text to the log.
 /// </summary>
 /// <param name="postType">Type of post to send.</param>
 /// <param name="text">Text to post.</param>
 public static void Post(LogPostType postType, string text)
 {
     Interops.LogPosting.Post((int)postType, text);
 }
示例#3
0
 /// <summary>
 /// Creates an object that temporarily switches console output level to the different one.
 /// </summary>
 /// <param name="tempPostLevel">New console output level.</param>
 public ConsoleOutputLevel(LogPostType tempPostLevel)
 {
     this.originalPostType = ConsoleLogWriter.PostType;
     ConsoleLogWriter.PostType = tempPostLevel;
 }
示例#4
0
 /// <summary>
 /// Creates an object that temporarily switches console output level to the different one.
 /// </summary>
 /// <param name="tempPostLevel">New console output level.</param>
 public ConsoleOutputLevel(LogPostType tempPostLevel)
 {
     this.originalPostType     = ConsoleLogWriter.PostType;
     ConsoleLogWriter.PostType = tempPostLevel;
 }