The strict comparison === seems to always evaluate to false as the types of $this->level (string) and self::LOG_LEVEL_PROD (integer) can never be identical. Maybe you want to use a loose comparison == instead?
The strict comparison === seems to always evaluate to false as the types of $this->level (string) and self::LOG_LEVEL_DEV (integer) can never be identical. Maybe you want to use a loose comparison == instead?