private void Write(AltaPayLogLevel type, string message) { if (DoLog(type)) { System.IO.File.AppendAllText(filename, String.Format("[{0}] {1}{2}", type, message, Environment.NewLine)); } }
private bool DoLog(AltaPayLogLevel incomingLevel) { if (LogLevel == AltaPayLogLevel.Off) { return(false); } return((int)incomingLevel >= (int)LogLevel); }