Refactoring logger call from m1 element