Aller au contenu principal
Version: Next

abstractLoggerFactory <Logger, LoggerOptions>

Implemented by

Index

Constructors

constructor

  • new LoggerFactory<Logger, LoggerOptions>(): LoggerFactory<Logger, LoggerOptions>
  • Type parameters

Methods

abstractclose

  • close(loggerName?: string): any

abstractcreateContextLogger

  • createContextLogger(ctx: any, appLogger: ILogger, contextOptions?: any): ILogger

abstractcreateLogger

  • createLogger(name: string, options: LoggerOptions): Logger

abstractgetDefaultMidwayLoggerConfig

  • getDefaultMidwayLoggerConfig(appInfo: MidwayAppInfo): { midwayLogger: { clients?: {}; default?: LoggerOptions } }

abstractgetLogger

  • getLogger(loggerName: string): Logger

abstractremoveLogger

  • removeLogger(loggerName: string): any