Made Logger an object

Made the Logger class an object instead of a static class. It is now
possible to have two nodes in an application log to different places.