How node overrides the console.log method

I want to add "input:"

to everything printed by console.log ().
Mar.24,2021

console.log_ = console.log
console.log = function(massge){
    console.log_('' + massge)
}
console.log('a'); // a

like this?
const log = console.log;
console.log = (...args) => {
    args = args.map(arg => `: ${arg}`);
    log.apply(console, args);
}
Menu