I have this code with log4j, I don't use any kind of configuration files
static Logger logger = Logger.getLogger(Application.class);
...
Appender ap = new NTEventLogAppender();
SimpleLayout layout = new SimpleLayout();
Appender fp = null;
try {
fp = new FileAppender(layout, "output.txt");
} catch (IOException e) {
e.printStackTrace();
}
logger.addAppender(ap);
logger.addAppender(fp);
logger.info("info");
can anybody show me how can I do the same thing with logback