Log sending refactoring.