Add ability to filter log messages by threshold

This allows configuration of a minimum log level. Log messages greater than
or equal to the specific log level will be included in the log output,
others will be discarded.