Esempio n. 1
0
        public void TestGE()
        {
            var Log = new MJBLog(@"Test", @"P:\_temp");

            if (Log.Level.GE(LogLevel.Verbose))
            {
                Log.Echo(@"Got here!");
            }
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        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;
        }