use of org.apache.ignite.logger.log4j.Log4JLogger in project ignite by apache.
the class TcpRouterAbstractSelfTest method routerConfiguration.
/**
* @return Router configuration.
* @throws IgniteCheckedException If failed.
*/
public GridTcpRouterConfiguration routerConfiguration() throws IgniteCheckedException {
GridTcpRouterConfiguration cfg = new GridTcpRouterConfiguration();
cfg.setHost(HOST);
cfg.setPort(ROUTER_PORT);
cfg.setPortRange(0);
cfg.setServers(Collections.singleton(HOST + ":" + BINARY_PORT));
cfg.setLogger(new Log4JLogger(ROUTER_LOG_CFG));
return cfg;
}
use of org.apache.ignite.logger.log4j.Log4JLogger in project ignite by apache.
the class SingleSplitsLoadTest method getConfiguration.
/**
* {@inheritDoc}
*/
@SuppressWarnings("ConstantConditions")
@Override
protected IgniteConfiguration getConfiguration() throws Exception {
IgniteConfiguration cfg = super.getConfiguration();
cfg.setCommunicationSpi(new TcpCommunicationSpi());
cfg.setDiscoverySpi(new TcpDiscoverySpi());
Log4JLogger log = (Log4JLogger) cfg.getGridLogger().getLogger(null);
log.setLevel(Level.INFO);
return cfg;
}
Aggregations