private static void LoggerDemo() { var logger = new FileLogger("log.txt"); // ConsoleLogger(); var doSomethingImportant = new DoSomethingImportant(logger); doSomethingImportant.DoTheJob(); }