Better logging configuration