log

Namespace

log

Description:
  • Log namespace. This namespace provides loggers to log messages to the openHAB Log.

Source:
Example

Basic logging

let log = require('openhab').log('my_logger');
log.info("Hello World!")

Classes

Logger

Members

(static, constant) LOGGER_PREFIX

Description:
  • Logger prefix

Source:

Logger prefix

Methods

(static) newLogger(name)

Description:
  • Creates a logger.

Source:
See:
  • Logger
Parameters:
Name Type Description
name string

the name of the logger