pass a logger instead of an array of transports