static public void Entry(ILog l, int logLevel, LogParam pr, string s, params object[] vars) { if (l == null) return; bool useConsole = (pr & LogParam.CONSOLE) != 0 && (pr & LogParam.NO_CONSOLE) == 0; bool writeIntoLog = l.LogLevel >= logLevel; if (!useConsole && !writeIntoLog) return; string timestamp = l.Timestamp ? GetTimestamp() : ""; if (useConsole) MasterLog.ConsoleWrite(s, timestamp, true, vars); if (writeIntoLog) l.LogWriteLine(timestamp + s, vars); }
static public void Console(string s, params object[] vars) { MasterLog.ConsoleWrite(s, GetTimestamp(), true, vars); }