Skip to main content
Version: 5.2

DefaultLogger

Implements

Index

Constructors

constructor

Properties

publicdebugMode

debugMode: boolean | LoggerNamespace[] = ...

Methods

error

  • Logs error message inside given namespace.


    Parameters

    Returns void

isEnabled

  • Parameters

    Returns boolean

log

  • Logs a message inside given namespace.


    Parameters

    Returns void

logQuery

  • logQuery(context: { query: string } & LogContext): void
  • Logs a message inside given namespace.


    Parameters

    Returns void

setDebugMode

  • Sets active namespaces. Pass true to enable all logging.


    Parameters

    Returns void

warn

  • Logs warning message inside given namespace.


    Parameters

    Returns void