UNPKG

yemot-recordings-backup

Version:

Automatic backup tool for Yemot HaMashiach call recordings to Amazon S3

18 lines (16 loc) 507 B
const winston = require('winston'); const config = require('./config'); const logger = winston.createLogger({ level: config.logLevel, format: winston.format.combine( winston.format.timestamp(), winston.format.printf(({ level, message, timestamp }) => { return `${timestamp} ${level.toUpperCase()}: ${message}`; }) ), transports: [ new winston.transports.Console(), new winston.transports.File({ filename: 'backup.log' }) ] }); module.exports = logger;