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

Build log paths that route messages from sources to destinations, select messages with filters, and manage flow-control and disk buffers.