Is this compatible with Winston 3.2.1?
Closed this issue · 0 comments
BradleyDHobbs commented
Does anyone know if this is compatible with Winston 3.2.1?
This code doesn't seem to do anything:
const winston = require('winston');
WinstonCloudWatch = require('winston-cloudwatch');
const logger = winston.createLogger({
transports: [
new winston.transports.Console(),
new WinstonCloudWatch({
awsRegion: 'us-east-2',
logGroupName: 'test-log-group',
logStreamName: 'development',
awsAccessKeyId: '****',
awsSecretKey: '****'
})
]
});
logger.log('info', 'Hello from winston');
module.exports = logger;
I get the logs to the console but nothing shows up in CloudWatch. The credentials have admin access.
Thanks