Works with logger