logts:只是一个带有 toISOString() 时间戳的 console.log()

时间:2021-06-06 22:55:27
【文件属性】:
文件名称:logts:只是一个带有 toISOString() 时间戳的 console.log()
文件大小:3KB
文件格式:ZIP
更新时间:2021-06-06 22:55:27
JavaScript 日志 只是一个带有(new Date()).toISOString()时间戳的console.log() 。 概要 console . log ( 'Hello, %s!' , 'World' ) // -> 'Hello, World!' var logts = require ( 'logts' ) logts ( 'Hello, %s!' , 'World' ) // -> '2015-05-11T02:23:49.108Z - Hello, World!' 还可以将其输出发送到 info、error、warn 和 trace: logts . log ( 'File opened : %s' , '/tmp/blah-1234.txt' ) logts . info ( 'Some info: %d green bottles' , 10 ) logts . error (
【文件预览】:
logts-master
----index.js(2KB)
----package.json(563B)
----LICENSE(1KB)
----.gitignore(24B)
----README.md(979B)

网友评论