Optimized logging output