[5.0] Log : simplify levels handling