winston-cloud-logging
v1.0.2
Published
Cloud logging compatible logging with Winston
Downloads
677
Maintainers
Readme
winston-cloud-logging
Cloud Logging compatible logging with Winston.
npm install winston-cloud-logging
Examples
Use the format in a logger
const winston = require("winston");
const winstonCloudLogging = require("winston-cloud-logging");
const logger = winston.createLogger({
format: winston.combine(
// rest of the logger formats to be used
winstonCloudLogging.format(),
winston.format.json()
),
// rest of the logger options
});