@AppKu/StashKu

@AppKu/StashKu

v1.0.46

Class

Logger

A logging interface class that exposes friendly log methods that pass information to a configured callback.

Constructor

new Logger(callback)

Creates a new Logger instance.

Parameters

  • callback LoggerCallback

    The logging callback asynchronously called when a log method call is made.

Source

Members

Methods

async

debug(…args)

Writes a debug-severity log message. This is the lowest severity.

Parameters

  • args any <repeatable>

    Any object values to be logged.

Source

async

error(…args)

Writes a error-severity log message. This is the highest severity.

Parameters

  • args any <repeatable>

    Any object values to be logged.

Source

async

info(…args)

Writes an information-severity log message. This is the second-to-lowest severity.

Parameters

  • args any <repeatable>

    Any object values to be logged.

Source

async

warn(…args)

Writes a warning-severity log message. This is the second-to-highest severity.

Parameters

  • args any <repeatable>

    Any object values to be logged.

Source