Refactor "log" messages