Improved log filtering: allow level selection