Aller au contenu principal
Version: Next

MidwayLoggerService

多客户端工厂实现

Hierarchy

Index

Constructors

constructor

Properties

readonlyapplicationContext

applicationContext: IMidwayContainer

publicconfigService

configService: MidwayConfigService

readonlyglobalOptions

globalOptions: {} = {}

Methods

publiccreateContextLogger

publiccreateInstance

  • createInstance(config: any, clientName?: any): Promise<ILogger>

publiccreateLogger

publicget

  • get<U>(id?: string): U
  • Type parameters

publicgetClientKeys

  • getClientKeys(): string[]

publicgetClientPriority

  • getClientPriority(name: string): string

publicgetClients

publicgetCurrentLoggerFactory

publicgetDefaultClientName

  • getDefaultClientName(): string

publicgetLogger

  • getLogger(name: string): any

getName

  • getName(): string

publichas

  • has(id: string): boolean

publicisHighPriority

  • isHighPriority(name: string): boolean

publicisLowPriority

  • isLowPriority(name: string): boolean

publicisMediumPriority

  • isMediumPriority(name: string): boolean

publicstop

  • stop(): Promise<void>