safer logging management