log: allow filtering messages with a regexp pattern