using System; using SimpleLog; namespace SimpleLog.Tests { /// /// To run this test, modify the project properties' "Application" /// section and set the output type to "Console Application", and /// set the startup object to this class. Then compile, and /// start a debugging instance of this class. /// internal static class ConsoleColorTest { static void Main(string[] args) { DefaultLogger logger = LoggerManager.GetLogger(typeof(DefaultLogger)) as DefaultLogger; logger.LogLevel = SimpleLog.Framework.LogLevel.All; logger.Debug("Debug message"); logger.Info("Info message"); logger.Warning("Warning message"); logger.Error("Error message"); logger.Fatal("Fatal message"); try { throw new Exception("Oh noes!! an exception"); } catch (Exception e) { logger.Fatal(e); } Console.ReadLine(); } } }