Search in sources :

Example 1 with MultiLogger

use of io.apiman.common.logging.impl.MultiLogger in project apiman by apiman.

the class StorageImportDispatcher method start.

/**
 * Set an additional logger implementations.
 *
 * @see #start(String, IApimanLogger)
 */
public void start(String fileName, List<IApimanLogger> extraLoggers) {
    ArrayList<IApimanLogger> delegates = new ArrayList<>(extraLoggers.size() + 1);
    delegates.addAll(extraLoggers);
    delegates.add(logger);
    this.logger = new MultiLogger(delegates);
    start(fileName);
}
Also used : MultiLogger(io.apiman.common.logging.impl.MultiLogger) ArrayList(java.util.ArrayList) IApimanLogger(io.apiman.common.logging.IApimanLogger)

Aggregations

IApimanLogger (io.apiman.common.logging.IApimanLogger)1 MultiLogger (io.apiman.common.logging.impl.MultiLogger)1 ArrayList (java.util.ArrayList)1