Moved logger to tools in order to make it available to other tools

We want to be able to log messages from the device_files tool
and from others.