Application settings#

The behavior of the application can be controlled via a file called ApplicationSettings.yaml which must be located in the /config directory. If no file is found the default values are used.

A settings file has the following structure:

 1PollIntervallInSeconds: 5
 2ManifestPath: "/data/Manifest.yaml"
 3Logging:
 4  LogToConsole: true
 5  LogToOtel: false
 6  MinimumLogLevel: Information  
 7  LogToFile: false
 8  LogFilePath: "logs"
 9  LogFileKeepMax: 5
10  Otel:
11    ServiceName: "mqtt2otel-internal"
12    ServiceNamespace: "prod-mqtt2otel"
13    Endpoint:
14      Protocol: "http"
15      Port: 32042
16      Address: "192.168.1.8"

It consists of the following settings:

settingdefault valuedescription
PollIntervallInSeconds5The interval in seconds for polling the manifest file for changes.
ManifestPath/data/Manifest.yamlThe path for the manifest file.
Logging.LogToConsoletrueEnables logging internal log messages to the console
Logging.LogToOtelfalseEnables logging internal log messages to en otel endpoint
Logging.LogToFilefalseEnables logging internal log messages to files
Logging.LogFilePathlogsSets the root directory for created log files
Logging.LogFileKeepMax5The maximum amount of log files that should be kept before deleting.
Logging.MinimumLogLevelInformationThe minimum log level that will be logged. Must be one of the following: Debug, Information, Warning, Error, Critical.
Logging.OtelemptyThe connection data for the otel endpoint. see otel server connection