Changed buffer overflow handling for Logger