Add optional configuration for log level

Set WILL_LOGLEVEL to override default log level of ERROR.