Exemple #1
0
 public ConsoleAppender(ISubmitConsoleLogEntry consoleLogEntrySubmitter, bool forceConsoleOutput, IFilter filter, IColorSchema colorSchema)
 {
     m_consoleLogEntrySubmitter = consoleLogEntrySubmitter;
     m_colorSchema = colorSchema;
     m_filter = filter;
     if (forceConsoleOutput)
     {
         m_isConsoleOutputAvaliable = true;
     }
     else
     {
         if (IsRunningOnMono)
         {
             m_isConsoleOutputAvaliable = true;
         }
         else // Windows
         {
             IntPtr iStdOut = GetStdHandle(STD_OUTPUT_HANDLE);
             if (iStdOut == IntPtr.Zero)
             {
                 m_isConsoleOutputAvaliable = false;
             }
             else
             {
                 m_isConsoleOutputAvaliable = true;
             }
         }
     }
 }
Exemple #2
0
 public ConsoleAppender(ISubmitConsoleLogEntry consoleLogEntrySubmitter, IFilter filter, IColorSchema colorSchema)
     : this(consoleLogEntrySubmitter, false, filter, colorSchema)
 {
 }
Exemple #3
0
 public ConsoleAppender(ISubmitConsoleLogEntry consoleLogEntrySubmitter,bool forceConsoleOutput,IColorSchema colorSchema)
     : this(consoleLogEntrySubmitter, forceConsoleOutput, null, colorSchema)
 {
 }