have logger() validate the log level passed for monolog compatibility