const winston = require ( 'winston' ) ; require ( 'winston-syslog' ) . Syslog ; winston . add ( new winston . transports . Syslog ( { app_name : 'one-time-secret' } ) ) ; const logger = winston . createLogger ( { levels : winston . config . syslog . levels , transports : [ new winston . transports . Syslog ( ) , new winston . transports . Console ( ) ] } ) ; export { logger } ;