new logger API for upstream merge