コード例 #1
0
        static void Main(string[] args)
        {
            var logger = new MyLogger();

            logger.Write("First log");
            logger.Write("Second log");
            Console.Write(logger.Read());
            Console.WriteLine("---");

            Useless.DoIt();

            logger.Write("More logs");
            Console.Write(logger.Read());
        }