Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Logger

Hierarchy

Index

Constructors

constructor

Properties

Protected _sourceLabel

_sourceLabel: string = undefined

Protected Optional app

app: Application

Protected optionsRef

optionsRef: LoggingOptionsRef

Static Readonly ZONE_LOCAL_NAME

ZONE_LOCAL_NAME: "@alterior/logger:Logger.current" = "@alterior/logger:Logger.current"

Accessors

context

  • get context(): any

contextLabel

  • get contextLabel(): any

listeners

sourceLabel

  • get sourceLabel(): string

Static current

Methods

clone

Protected createMessage

debug

  • debug(message: string, options?: LogOptions): void

error

  • error(message: string, options?: LogOptions): void

info

  • info(message: string, options?: LogOptions): void

inspect

  • inspect(object: any, options?: LogOptions): void

log

  • log(message: string, options?: LogOptions): void

run

  • run(func: Function): any
  • Run the given function with this logger as the current logger. Calls to Logger.current will yield the logger for this execution context.

    Parameters

    • func: Function

    Returns any

warning

  • warning(message: string, options?: LogOptions): void

withContext

  • withContext<T>(context: any, label: string, callback: () => T): Promise<T>

withSource

  • withSource(sourceLabel: string | Object): Logger

Generated using TypeDoc