console.log replacement