Improve logger configuration