Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MidwayLoggerContainer

Hierarchy

Constructors

constructor

Properties

Readonly [Symbol.toStringTag]

[Symbol.toStringTag]: string

Readonly size

size: number

Static Map

Map: MapConstructor

Methods

[Symbol.iterator]

  • [Symbol.iterator](): IterableIterator<[string, ILogger]>

addLogger

  • addLogger(name: string, logger: ILogger, errorWhenReplace?: boolean): ILogger

clear

  • clear(): void

close

  • close(name?: string): void
  • Closes a Logger instance with the specified name if it exists. If no name is supplied then all Loggers are closed.

    Parameters

    • Optional name: string

      The id of the Logger instance to close.

    Returns void

createLogger

delete

  • delete(key: string): boolean

disableConsole

  • disableConsole(): void

disableError

  • disableError(): void

disableFile

  • disableFile(): void

entries

  • entries(): IterableIterator<[string, ILogger]>

forEach

  • forEach(callbackfn: function, thisArg?: any): void

get

  • get(key: string): ILogger | undefined

getLogger

has

  • has(key: string): boolean

keys

  • keys(): IterableIterator<string>

removeLogger

  • removeLogger(name: string): void

reset

  • reset(): void

restore

  • restore(): void

set

  • set(key: string, value: ILogger): this

updateConsoleLevel

updateContainerOption

updateFileLevel

updateLevel

values

  • values(): IterableIterator<ILogger>

Generated using TypeDoc