correct logger work