Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MidwayDelegateLogger

framework delegate logger, it can proxy logger output to another logger

Hierarchy

Implements

Constructors

constructor

Properties

alert

alert: LeveledLogMethod

consoleTransport

consoleTransport: any

crit

crit: LeveledLogMethod

data

data: LeveledLogMethod

debug

debug: LeveledLogMethod

defaultLabel

defaultLabel: string = ""

Optional defaultMeta

defaultMeta: any

defaultMetadata

defaultMetadata: object

Type declaration

destroyed

destroyed: boolean

emerg

emerg: LeveledLogMethod

errTransport

errTransport: any

error

error: LeveledLogMethod

exceptions

exceptions: ExceptionHandler

exitOnError

exitOnError: Function | boolean

fileTransport

fileTransport: any

format

format: Format

help

help: LeveledLogMethod

http

http: LeveledLogMethod

info

info: LeveledLogMethod

input

input: LeveledLogMethod

level

level: string

levels

levels: Config.AbstractConfigSetLevels

log

log: LogMethod

loggerOptions

loggerOptions: LoggerOptions

notice

notice: LeveledLogMethod

profilers

profilers: object

prompt

prompt: LeveledLogMethod

readable

readable: boolean

Readonly readableEncoding

readableEncoding: BufferEncoding | null

Readonly readableEnded

readableEnded: boolean

Readonly readableFlowing

readableFlowing: boolean | null

Readonly readableHighWaterMark

readableHighWaterMark: number

Readonly readableLength

readableLength: number

Readonly readableObjectMode

readableObjectMode: boolean

silent

silent: boolean

silly

silly: LeveledLogMethod

transports

transports: Transport[]

verbose

verbose: LeveledLogMethod

warn

warn: LeveledLogMethod

warning

warning: LeveledLogMethod

Readonly writable

writable: boolean

Readonly writableCorked

writableCorked: number

Readonly writableEnded

writableEnded: boolean

Readonly writableFinished

writableFinished: boolean

Readonly writableHighWaterMark

writableHighWaterMark: number

Readonly writableLength

writableLength: number

Readonly writableObjectMode

writableObjectMode: boolean

Methods

[Symbol.asyncIterator]

  • [Symbol.asyncIterator](): AsyncIterableIterator<any>

Optional _construct

  • _construct(callback: function): void

_destroy

  • _destroy(error: Error | null, callback: function): void

_final

  • _final(callback: function): void

_flush

  • _flush(callback: TransformCallback): void

_read

  • _read(size: number): void

_transform

  • _transform(chunk: any, encoding: BufferEncoding, callback: TransformCallback): void

_write

  • _write(chunk: any, encoding: BufferEncoding, callback: function): void

Optional _writev

  • _writev(chunks: Array<object>, callback: function): void

add

  • add(transport: any): any

addListener

  • addListener(event: "close", listener: function): this
  • addListener(event: "data", listener: function): this
  • addListener(event: "end", listener: function): this
  • addListener(event: "error", listener: function): this
  • addListener(event: "pause", listener: function): this
  • addListener(event: "readable", listener: function): this
  • addListener(event: "resume", listener: function): this
  • addListener(event: string | symbol, listener: function): this

child

  • child(options: Object): Logger

clear

  • clear(): Logger

close

  • close(): any

configure

  • configure(options: LoggerOptions): void

cork

  • cork(): void

customInfoHandler

destroy

  • destroy(error?: Error): void

disableConsole

  • disableConsole(): void

disableError

  • disableError(): void

disableFile

  • disableFile(): void

emit

  • emit(event: "close"): boolean
  • emit(event: "data", chunk: any): boolean
  • emit(event: "end"): boolean
  • emit(event: "error", err: Error): boolean
  • emit(event: "pause"): boolean
  • emit(event: "readable"): boolean
  • emit(event: "resume"): boolean
  • emit(event: string | symbol, ...args: any[]): boolean

enableConsole

  • enableConsole(): void

enableError

  • enableError(): void

enableFile

  • enableFile(): void

end

  • end(cb?: function): void
  • end(chunk: any, cb?: function): void
  • end(chunk: any, encoding?: BufferEncoding, cb?: function): void

eventNames

  • eventNames(): Array<string | symbol>

getConsoleLevel

getDefaultLabel

  • getDefaultLabel(): string

getDefaultLoggerConfigure

  • getDefaultLoggerConfigure(): object

getDefaultMeta

  • getDefaultMeta(): Record<string, unknown>

getFileLevel

getMaxListeners

  • getMaxListeners(): number

isDebugEnabled

  • isDebugEnabled(): boolean

isEnableConsole

  • isEnableConsole(): boolean

isEnableError

  • isEnableError(): boolean

isEnableFile

  • isEnableFile(): boolean

isErrorEnabled

  • isErrorEnabled(): boolean

isInfoEnabled

  • isInfoEnabled(): boolean

isLevelEnabled

  • isLevelEnabled(level: string): boolean

isPaused

  • isPaused(): boolean

isSillyEnabled

  • isSillyEnabled(): boolean

isVerboseEnabled

  • isVerboseEnabled(): boolean

isWarnEnabled

  • isWarnEnabled(): boolean

listenerCount

  • listenerCount(event: string | symbol): number

listeners

  • listeners(event: string | symbol): Function[]

off

  • off(event: string | symbol, listener: function): this

on

  • on(event: "close", listener: function): this
  • on(event: "data", listener: function): this
  • on(event: "end", listener: function): this
  • on(event: "error", listener: function): this
  • on(event: "pause", listener: function): this
  • on(event: "readable", listener: function): this
  • on(event: "resume", listener: function): this
  • on(event: string | symbol, listener: function): this

once

  • once(event: "close", listener: function): this
  • once(event: "data", listener: function): this
  • once(event: "end", listener: function): this
  • once(event: "error", listener: function): this
  • once(event: "pause", listener: function): this
  • once(event: "readable", listener: function): this
  • once(event: "resume", listener: function): this
  • once(event: string | symbol, listener: function): this

pause

  • pause(): this

pipe

  • pipe<T>(destination: T, options?: object): T

prependListener

  • prependListener(event: "close", listener: function): this
  • prependListener(event: "data", listener: function): this
  • prependListener(event: "end", listener: function): this
  • prependListener(event: "error", listener: function): this
  • prependListener(event: "pause", listener: function): this
  • prependListener(event: "readable", listener: function): this
  • prependListener(event: "resume", listener: function): this
  • prependListener(event: string | symbol, listener: function): this

prependOnceListener

  • prependOnceListener(event: "close", listener: function): this
  • prependOnceListener(event: "data", listener: function): this
  • prependOnceListener(event: "end", listener: function): this
  • prependOnceListener(event: "error", listener: function): this
  • prependOnceListener(event: "pause", listener: function): this
  • prependOnceListener(event: "readable", listener: function): this
  • prependOnceListener(event: "resume", listener: function): this
  • prependOnceListener(event: string | symbol, listener: function): this

profile

  • profile(id: string | number, meta?: LogEntry): Logger

push

  • push(chunk: any, encoding?: BufferEncoding): boolean

query

  • query(options?: QueryOptions, callback?: function): any

rawListeners

  • rawListeners(event: string | symbol): Function[]

read

  • read(size?: number): any

remove

  • remove(transport: any): any

removeAllListeners

  • removeAllListeners(event?: string | symbol): this

removeListener

  • removeListener(event: "close", listener: function): this
  • removeListener(event: "data", listener: function): this
  • removeListener(event: "end", listener: function): this
  • removeListener(event: "error", listener: function): this
  • removeListener(event: "pause", listener: function): this
  • removeListener(event: "readable", listener: function): this
  • removeListener(event: "resume", listener: function): this
  • removeListener(event: string | symbol, listener: function): this

resume

  • resume(): this

setDefaultEncoding

  • setDefaultEncoding(encoding: BufferEncoding): this

setEncoding

  • setEncoding(encoding: BufferEncoding): this

setMaxListeners

  • setMaxListeners(n: number): this

startTimer

  • startTimer(): Profiler

stream

  • stream(options?: any): ReadableStream

uncork

  • uncork(): void

unpipe

  • unpipe(destination?: WritableStream): this

unshift

  • unshift(chunk: any, encoding?: BufferEncoding): void

updateConsoleLevel

updateDefaultLabel

  • updateDefaultLabel(defaultLabel: string): void

updateDefaultMeta

  • updateDefaultMeta(defaultMetadata: Record<string, unknown>): void

updateFileLevel

updateLevel

updateTransformableInfo

wrap

  • wrap(oldStream: ReadableStream): this

write

  • write(...args: any[]): any

Static from

  • from(iterable: Iterable<any> | AsyncIterable<any>, options?: ReadableOptions): Readable

Generated using TypeDoc