Use logging

Add config option 'log_level' to set log level.

Change print callsites to use log().

Signed-off-by: Andy Grover <agrover@redhat.com>