use logger replace log