User Tools

Site Tools


sib:loggerconfiguraton

Logger Configuration

All the listeners and callers .custom configuration contains the loggerCfg element:

loggerCfg: {
	dest: {
		file: false,
		console: true,
		mqtt: true
	}

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