跳到主要内容
版本: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