댓글 검색 목록

[Nodejs] console-log-level - 로그 레벨과 사용자 정의 접두사를 지원하는 가장 간단한 로거입니다.

페이지 정보

작성자 운영자 작성일 19-03-07 11:56 조회 456 댓글 0

https://github.com/watson/console-log-level


var log = require('console-log-level')({ level: 'info' })

log.trace('a') // will not do anything
log.debug('b') // will not do anything
log.info('c')  // will output 'c\n' on STDOUT
log.warn('d')  // will output 'd\n' on STDERR
log.error('e') // will output 'e\n' on STDERR
log.fatal('f') // will output 'f\n' on STDERR


댓글목록 0

등록된 댓글이 없습니다.

웹학교 로고

온라인 코딩학교

코리아뉴스 2001 - , All right reserved.