simplify log listener