Added functionality to allow setting the minimum log level.