Added log level filtering based on environment