User Tools

Site Tools


sib:loggerconfiguraton

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

sib:loggerconfiguraton [2018/11/14 12:38] (current)
hubbe created
Line 1: Line 1:
 +====== Logger Configuration ======
  
 +All the listeners and callers .custom configuration contains the //​loggerCfg//​ element:
 +
 +<code javascript>​
 +loggerCfg: {
 + dest: {
 + file: false,
 + console: true,
 + mqtt: true
 + }
 +</​code>​
 +
 +Here is a description of the loggerCfg element:
 +
 +* loggerCfg: A JSON Object defining what logger actions should be active for this service
 +    * dest:
 +      * console: boolean - Log to console or not
 +      * file: boolean - Log to file or not
 +      * mqtt: boolean - Log to MQTT or not
 +    * filepath: If logging to file this specifies which file path to log to. The logfile will be called //​log_[date].log//​.
 +    * formatter: Which formatter to use for logging, defaults to stdFormatter
 +    * mqtt_host: If not logging to the internal MQTT transport, the connectionstring to the wanted logger MQTT is specified here
 +    * topic: The topic on which to publish logs, defaults to //​[ENV]/​SIB/​LOGGER/​[serviceId]/​ //
sib/loggerconfiguraton.txt ยท Last modified: 2018/11/14 12:38 by hubbe