Converted logging into a more generic logger. A lot of the features
will be offloaded to the environment the code runs in (logrotate,
pipes, etc..)