Skip to main content
Version: Next

DefaultLogger

Hierarchy

Implements

Index

Constructors

constructor

Properties

debugMode

debugMode: boolean | LoggerNamespace[]

readonlywriter

writer: (message: string) => void

Type declaration

    • (message: string): void
    • Parameters

      • message: string

      Returns void

Methods

error

  • Logs error message inside given namespace.


    Parameters

    Returns void

isEnabled

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

staticcreate