Creates a logger, optionally pre-populating transports.
transports
Logger([List<Transport>? transports]) : transports = transports ?? [];