Rewrote logger to use a different singleton technique