logToFile = settings.getBool("FIXimulatorLogToFile");
logToDB = settings.getBool("FIXimulatorLogToDB");
} catch (FieldConvertError ex) {}
if ( logToFile && logToDB ) {
logFactory = new CompositeLogFactory(
new LogFactory[] { new ScreenLogFactory(settings),
new FileLogFactory(settings),
new JdbcLogFactory(settings)});
} else if ( logToFile ) {
logFactory = new CompositeLogFactory(
new LogFactory[] { new ScreenLogFactory(settings),
new FileLogFactory(settings)});
} else if ( logToDB ) {
logFactory = new CompositeLogFactory(
new LogFactory[] { new ScreenLogFactory(settings),
new JdbcLogFactory(settings)});
} else {
logFactory = new ScreenLogFactory(settings);
}
MessageFactory messageFactory = new DefaultMessageFactory();
acceptor = new SocketAcceptor
( application, messageStoreFactory,
settings, logFactory, messageFactory );