update logger interface and clean spare endline