Refactored logging levels and messages