Options
All
  • Public
  • Public/Protected
  • All
Menu

External module logger

Introduction

The PiWeb variable extension API provides a logging interface. You can create log entries as error, warning, info or debug messages. Be aware that generating log messages has a significant performance impact.

import * as piweb from 'piweb';
import logger = piweb.logger;

logger.debug("My log message");

Index

Functions

Functions

debug

  • debug(format: any, ...param: any[]): void
  • Generates a log message with the debug log level.

    Parameters

    • format: any

      The format string that shall be logged.

    • Rest ...param: any[]

      The parameters of the format string.

    Returns void

error

  • error(format: any, ...param: any[]): void
  • Generates a log message with the error log level.

    Parameters

    • format: any

      The format string that shall be logged.

    • Rest ...param: any[]

      The parameters of the format string.

    Returns void

info

  • info(format: any, ...param: any[]): void
  • Generates a log message with the info log level.

    Parameters

    • format: any

      The format string that shall be logged.

    • Rest ...param: any[]

      The parameters of the format string.

    Returns void

warn

  • warn(format: any, ...param: any[]): void
  • Generates a log message with the warning log level.

    Parameters

    • format: any

      The format string that shall be logged.

    • Rest ...param: any[]

      The parameters of the format string.

    Returns void

Generated using TypeDoc