Refactor logger
no need for multiple msg functions.