/** * Sets the default access {@link Logger} for all {@link VirtualHost}s. * The {@link VirtualHost}s which do not have an access logger specified by a {@link VirtualHostBuilder} * will have the same access {@link Logger} when {@link ServerBuilder#build()} is called. */ public ServerBuilder accessLogger(Logger logger) { requireNonNull(logger, "logger"); return accessLogger(host -> logger); }
/** * Sets the default access logger name for all {@link VirtualHost}s. * The {@link VirtualHost}s which do not have an access logger specified by a {@link VirtualHostBuilder} * will have the same access {@link Logger} named the {@code loggerName} * when {@link ServerBuilder#build()} is called. */ public ServerBuilder accessLogger(String loggerName) { requireNonNull(loggerName, "loggerName"); return accessLogger(LoggerFactory.getLogger(loggerName)); }