文件名称:winston-google:在 Google Cloud Platform 上使用的 Whnston 配置
文件大小:6KB
文件格式:ZIP
更新时间:2024-07-19 05:34:21
JavaScript
温斯顿-谷歌 在上使用的传输。 用法 可以构建和提供 winston-google 传输作为记录器的传输之一。 var winston = require('winston'); var winston_google = require('winston-google'); var logger = new (winston.Logger)({ transports: [ new (winston_google.Transport)() ] }; 构造函数采用一个options散列,该散列可以包含以下值之一: level :此传输应记录的消息的级别。 默认为“调试” maxsize :日志文件的最大大小(以字节为单位)。 如果超出大小,则会创建一个新文件。 maxFiles :限制超过日志文件大小时创建的文件数。
【文件预览】:
winston-google-master
----package.json(715B)
----winston-google.js(2KB)
----LICENSE(11KB)
----.gitignore(14B)
----README.md(896B)