directly use logger interface.