Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "Log/Logger"

Index

Variables

logger

logger: any = new winston.Logger({transports: [new winston.transports.Console({handleExceptions: false,prettyPrint: false,colorize: true,level: 'debug',timestamp: function () {return Date.now()},formatter: function (options) {// Return string will be passed to logger.return `[${getFormattedDate()}][${wrapper('underline', wrapper('bold', global['_serviceName']))}] ${wrapper('bold', levelColor(options.level))} :: ${options.message} `}})],exitOnError: false})

winston

winston: any = require('winston')

Functions

getFormattedDate

  • getFormattedDate(): string

levelColor

  • levelColor(level: any): string

Generated using TypeDoc