Make the loglevel configurable

This is useful for when the collector is run by hand and more logging
output is required.