Removed some inline code from logger