Fixed a compiler warning. Refs #8685.
Refactored filtering by multiple log values. Refs #8685.