private void ConfigureLogging() { var simpleLayout = new NLog.Layouts.SimpleLayout("${longdate}:${message}"); var nlogTarget = new NAntNLogTarget(this) { Layout = simpleLayout, Name = MigratorLogManager.LOGGER_NAME }; MigratorLogManager.SetNLogTarget(nlogTarget); }