a cool loggin function that is cool