siteKiosk.log



Example:

// Add a debug entry.
// You can find them on the siteKiosk Online dashboard:
// Monitoring -> [Machine Name] -> Logfiles
siteKiosk.log.debug("MyFacility", "My important log message");

Edit this snippet on JSFiddle

This will add an entry like: 10 0000 <DATE> <TIME> [MyFacility] My important log message

Methods

  • Writes a debug message into the log.

    Parameters

    • facility: string

      The facility the log message referes to.

    • message: string

      The log message.

    • Optional logType: Number

      The optional log type.

    • Optional additionalParameters: Map<string, string>

      The optional additional parameters which will be stored for the log entry.

    Returns void

  • Writes an error into the log.

    Parameters

    • facility: string

      The facility the log message referes to.

    • message: string

      The log message.

    • Optional logType: Number

      The optional log type.

    • Optional additionalParameters: Map<string, string>

      The optional additional parameters which will be stored for the log entry.

    Returns void

  • Writes an info message into the log.

    Parameters

    • facility: string

      The facility the log message referes to.

    • message: string

      The log message.

    • Optional logType: Number

      The optional log type.

    • Optional additionalParameters: Map<string, string>

      The optional additional parameters which will be stored for the log entry.

    Returns void

  • Writes a "this should not happen" message into the log.

    Parameters

    • facility: string

      The facility the log message referes to.

    • message: string

      The log message.

    • Optional logType: Number

      The optional log type.

    • Optional additionalParameters: Map<string, string>

      The optional additional parameters which will be stored for the log entry.

    Returns void

  • Writes a verbose message into the log.

    Parameters

    • facility: string

      The facility the log message referes to.

    • message: string

      The log message.

    • Optional logType: Number

      The optional log type.

    • Optional additionalParameters: Map<string, string>

      The optional additional parameters which will be stored for the log entry.

    Returns void

  • Writes a warning into the log.

    Parameters

    • facility: string

      The facility the log message referes to.

    • message: string

      The log message.

    • Optional logType: Number

      The optional log type.

    • Optional additionalParameters: Map<string, string>

      The optional additional parameters which will be stored for the log entry.

    Returns void

Generated using TypeDoc