Skip to main content
Version: 6.4

SimpleLogger

A basic logger that provides fully formatted output without color

Hierarchy

Index

Constructors

constructor

Properties

inheriteddebugMode

debugMode: boolean | LoggerNamespace[]

readonlyinheritedwriter

writer: (message: string) => void

Type declaration

    • (message: string): void
    • Parameters

      • message: string

      Returns void

Methods

inheritederror

  • Logs error message inside given namespace.


    Parameters

    Returns void

inheritedisEnabled

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

inheritedsetDebugMode

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


    Parameters

    Returns void

inheritedwarn

  • Logs warning message inside given namespace.


    Parameters

    Returns void

staticcreate