예제 #1
0
파일: Log.cs 프로젝트: RoqueDeicide/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);
 }
예제 #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;
 }