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; } } } }
public ConsoleAppender(ISubmitConsoleLogEntry consoleLogEntrySubmitter, IFilter filter, IColorSchema colorSchema) : this(consoleLogEntrySubmitter, false, filter, colorSchema) { }
public ConsoleAppender(ISubmitConsoleLogEntry consoleLogEntrySubmitter,bool forceConsoleOutput,IColorSchema colorSchema) : this(consoleLogEntrySubmitter, forceConsoleOutput, null, colorSchema) { }