public void TestGE() { var Log = new MJBLog(@"Test", @"P:\_temp"); if (Log.Level.GE(LogLevel.Verbose)) { Log.Echo(@"Got here!"); } }
static void Main(string[] args) { MJBLog Log = new MJBLog(); Log.Clear(); Fruit Orange = new Fruit() { Name = nameof(Orange), Type = @"Citris", Quantity = 20 }; Log.PropertyReport(Orange); }
public void TestCache() { var Log = new MJBLog() { LogName = @"TestCache", CachedMode = true }; for (int x = 0; x <= 100; x++) { Log.Info($"Test message #{x}"); } Log.CachedMode = false; }