Optimize logger name truncation