Fix logger usage