const winston = require( 'winston' );

module.exports = new Proxy( new winston.Logger( {
    level: 'verbose',
    transports: [
        new( winston.transports.Console )(),
        new( winston.transports.File )( {
            filename: 'poetry.log'
        } )
    ]
} ), {
    apply( target, thisArg, options ) {
        target.log.apply( thisArg, options );
    }
} );

const winston = require( 'winston' );

var logger = new winston.Logger( {
    transports: [
        new( winston.transports.Console )(),
        new( winston.transports.File )( {
            filename: 'poetry.log'
        } )
    ]
} );

module.exports = logger.debug;
module.exports.silly = logger.silly;
module.exports.debug = logger.debug;
module.exports.verbose = logger.verbose;
module.exports.info = logger.info;
module.exports.warn = logger.warn;
module.exports.error = logger.error;

Add logging system