Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LogContext

Hierarchy

  • LogContext

Index

Constructors

Properties

_ciMode: boolean
_debugMode: boolean

Methods

  • debug<T>(title: string, message?: T): void
  • log debug information if $DEBUG env is exist or always in CI

    Type parameters

    • T = unknown

    Parameters

    • title: string

      title of message or message itself

    • Optional message: T

      custom message, can be any type. if this is object, wrap with util.inspect()

    Returns void

  • isDebug(): boolean
  • log(key: string, title: string, message?: unknown): void
  • print<T>(title: string, message?: T): void
  • setCI(toggle: boolean): void
  • setDebug(toggle: boolean): void

Generated using TypeDoc