Slightly modified logger