Revamp logging mechanism to a module with bool return values for type