Node.js console.log vs console.info

后端 未结 10 1174
青春惊慌失措
青春惊慌失措 2021-01-30 15:51

What is the benefit of using console.log vs console.info? Or any of the other console commands for that matter?

console.info(\"info\")         


        
10条回答
  •  后悔当初
    2021-01-30 15:55

    stdin A readable stream for reading input from the user.

    stdout A writable stream, either synchronously or asynchronously.

    stderr A blocking synchronous writable stream intended for error messages.

    The stdout or non-blocking functions are: console.log, console.info, util.puts, util.print and Stderr.

    The blocking functons are: console.warn, console.error, util.debug and process.stdin (a readable stream for getting user input).

提交回复
热议问题