Exemplo n.º 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);
 }
Exemplo n.º 2
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);
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }