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

            return((int)incomingLevel >= (int)LogLevel);
        }