Add logging configuration

Allow the logger to be configured, this will help remove hard coded options from code.