add environment aware logging