public static void Main(string[] args)
        {
            Log2 log2 = (level, msg) => Console.WriteLine(string.Format("{0} {1}", level, msg));

            log2(Error, "abort abort !");

            log2.Level(Error)("abort abort !");
        }
        public void Test_Adapter2()
        {
            string logOutput;

            Log2 log2 = (level, msg) => logOutput = string.Format("{0} {1}", level, msg);

            logOutput = null;
            log2(Error, "abort abort !");
            Assert.Equal("Error abort abort !", logOutput);

            logOutput = null;
            log2.Level(Error)("abort abort !");
            Assert.Equal("Error abort abort !", logOutput);
        }