コード例 #1
0
        private static void LoggerDemo()
        {
            var logger = new FileLogger("log.txt"); // ConsoleLogger();
            var doSomethingImportant = new DoSomethingImportant(logger);

            doSomethingImportant.DoTheJob();
        }
コード例 #2
0
 private static void LoggerDemo()
 {
     var logger = new FileLogger("log.txt"); // ConsoleLogger();
     var doSomethingImportant = new DoSomethingImportant(logger);
     doSomethingImportant.DoTheJob();
 }