logging better using java logging framework