Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Logger

Logging service

Hierarchy

  • Logger

Index

Constructors

Properties

Methods

Object literals

Constructors

constructor

Properties

Protected log_dir

log_dir: string

Protected logger

logger: any

Protected options

Methods

Protected consoleFormatter

  • consoleFormatter(options: any): string

Protected createLogger

  • createLogger(): void

Protected getEntry

  • getEntry(entry: Object, actor?: any, instances?: Array<any>): Object
  • Generates a formatted logging entry.

    Parameters

    • entry: Object
    • Optional actor: any
    • Default value instances: Array<any> = []

    Returns Object

log

  • log(type: number, message: string, actor?: any, instances?: any): void
  • Create a log entry. Used for log _files and console reporting.

    Parameters

    • type: number
    • message: string
    • Optional actor: any
    • Optional instances: any

    Returns void

query

Object literals

Protected log_types

log_types: object

Valid log times

type

{{0: string; 1: string; 2: string; 3: string}}

0

0: string = "debug"

1

1: string = "info"

2

2: string = "warn"

3

3: string = "error"

Generated using TypeDoc