implement console logging