Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Consola

Hierarchy

  • Consola

Index

Constructors

constructor

  • new Consola(options?: {}): Consola
  • Parameters

    • Default value options: {} = {}

    Returns Consola

Accessors

stderr

  • get stderr(): any
  • Returns any

stdout

  • get stdout(): any
  • Returns any

Methods

_log

  • _log(logObj: any): void
  • Parameters

    • logObj: any

    Returns void

_logAsync

  • _logAsync(logObj: any): Promise<[any, any, any, any, any, any, any, any, any, any]>
  • Parameters

    • logObj: any

    Returns Promise<[any, any, any, any, any, any, any, any, any, any]>

_logFn

  • _logFn(defaults: any, args: any): false | Promise<boolean>
  • Parameters

    • defaults: any
    • args: any

    Returns false | Promise<boolean>

_restoreStream

  • _restoreStream(stream: any): void
  • Parameters

    • stream: any

    Returns void

_wrapLogFn

  • _wrapLogFn(defaults: any): any
  • Parameters

    • defaults: any

    Returns any

_wrapStream

  • _wrapStream(stream: any, type: any): void
  • Parameters

    • stream: any
    • type: any

    Returns void

addReporter

  • addReporter(reporter: any): this
  • Parameters

    • reporter: any

    Returns this

create

  • Parameters

    • options: any

    Returns Consola

mockTypes

  • mockTypes(mockFn: any): void
  • Parameters

    • mockFn: any

    Returns void

pauseLogs

  • pauseLogs(): void
  • Returns void

removeReporter

  • removeReporter(reporter: any): any
  • Parameters

    • reporter: any

    Returns any

restoreAll

  • restoreAll(): void
  • Returns void

restoreConsole

  • restoreConsole(): void
  • Returns void

restoreStd

  • restoreStd(): void
  • Returns void

resumeLogs

  • resumeLogs(): void
  • Returns void

setReporters

  • setReporters(reporters: any): this
  • Parameters

    • reporters: any

    Returns this

withDefaults

  • withDefaults(defaults: any): Consola
  • Parameters

    • defaults: any

    Returns Consola

withTag

  • Parameters

    • tag: any

    Returns Consola

wrapAll

  • wrapAll(): void
  • Returns void

wrapConsole

  • wrapConsole(): void
  • Returns void

wrapStd

  • wrapStd(): void
  • Returns void

Generated using TypeDoc