Move logger to different class