All files / src/utilities/loggers logger.web.js

100% Statements 15/15
100% Branches 0/0
100% Functions 8/8
100% Lines 8/8
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17        6x 6x 6x 6x 6x 6x       6x   1x  
/* eslint-disable no-console */
 
class Logger {
  constructor() {
    this.error = arg => console.error(`error - ${arg}`);
    this.warn = arg => console.warn(`warn - ${arg}`);
    this.info = arg => console.info(`info - ${arg}`);
    this.verbose = arg => console.log(`verbose - ${arg}`);
    this.debug = arg => console.debug(`debug - ${arg}`);
    this.silly = arg => console.log(`silly - ${arg}`);
  }
}
 
const logger = () => new Logger();
 
module.exports = logger;