adding support for configurable log level