redefine stdout logging