log: Filter and route log messages using log paths, flags, and filters