跳到主要内容
版本:Next

DefaultConsoleLoggerFactory

Implements

Index

Constructors

constructor

Methods

close

  • close(loggerName?: string): void

createContextLogger

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

createLogger

  • createLogger(name: string, options: any): ILogger

publicgetClientKeys

  • getClientKeys(): string[]

publicgetClients

getDefaultMidwayLoggerConfig

  • getDefaultMidwayLoggerConfig(): { midwayLogger: { clients?: {}; default?: any } }

getLogger

  • getLogger(loggerName: string): ILogger

removeLogger

  • removeLogger(loggerName: string): void