added log level filtering