Added logging ability, which interrupts stdout (e.g. print)