Updated logging class from noob to better