Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "internal/util/logger"

Index

Type aliases

LogCallback

LogCallback: function

Type declaration

    • (error?: any, level?: string, msg?: string, meta?: any): void
    • Parameters

      • Optional error: any
      • Optional level: string
      • Optional msg: string
      • Optional meta: any

      Returns void

Variables

Const logger

logger: Logger = winstonLogger

Const winstonLogger

winstonLogger: LoggerInstance = new winston.Logger({level: "debug",// handleExceptions: true,// humanReadableUnhandledException: true,exitOnError: false,transports: [new (winston.transports.Console)({level: "info",json: false,colorize: require("chalk").supportsColor,prettyPrint: true,timestamp: true,showLevel: true,align: true,stderrLevels: ["error"],formatter,// handleExceptions: true,// humanReadableUnhandledException: true,}),],})

Functions

addFileTransport

  • addFileTransport(filename: string, level: string): void

directConsoleToLogger

  • directConsoleToLogger(): void

formatter

  • formatter(options: any): string

initLogging

  • initLogging(): void

setLogLevel

  • setLogLevel(level: string): void

Object literals

Let LoggingConfig

LoggingConfig: object

format

format: string = "logger"

Generated using TypeDoc