You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
895 B
30 lines
895 B
4 months ago
|
// | ------------------------------------------------------------
|
||
|
// | @版本: version 0.1
|
||
|
// | @创建人: 【Nie-x7129】
|
||
|
// | @E-mail: x71291@outlook.com
|
||
|
// | @文件描述: logger | Nodejs的日志记录工具合集,包括Winston、pino、log4js,
|
||
|
// | @创建时间: 2023-09-15 09:28
|
||
|
// | @更新时间: 2023-09-15 09:28
|
||
|
// | @修改记录:
|
||
|
// | -*-*-*- (时间--修改人--修改说明) -*-*-*-
|
||
|
// | =
|
||
|
// | ------------------------------------------------------------
|
||
|
const winston = require('./src/winston/index')
|
||
|
console.time(1)
|
||
|
winston.fatal('Hello Wrold')
|
||
|
winston.error({time: new Date()},{name:'hexi'},'xsaxasx')
|
||
|
winston.warn('Hello Wrold')
|
||
|
winston.info('Hello Wrold')
|
||
|
winston.debug('Hello Wrold')
|
||
|
winston.trace('Hello Wrold')
|
||
|
console.timeEnd(1)
|
||
|
const obj = {
|
||
|
name:'Nier',
|
||
|
age:25,
|
||
|
sex:1,
|
||
|
muster:"PAC",
|
||
|
role:'保密者',
|
||
|
premier:'ALL'
|
||
|
}
|
||
|
winston.info(obj)
|