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:
| setting | default value | description |
|---|---|---|
| PollIntervallInSeconds | 5 | The interval in seconds for polling the manifest file for changes. |
| ManifestPath | /data/Manifest.yaml | The path for the manifest file. |
| Logging.LogToConsole | true | Enables logging internal log messages to the console |
| Logging.LogToOtel | false | Enables logging internal log messages to en otel endpoint |
| Logging.LogToFile | false | Enables logging internal log messages to files |
| Logging.LogFilePath | logs | Sets the root directory for created log files |
| Logging.LogFileKeepMax | 5 | The maximum amount of log files that should be kept before deleting. |
| Logging.MinimumLogLevel | Information | The minimum log level that will be logged. Must be one of the following: Debug, Information, Warning, Error, Critical. |
| Logging.Otel | empty | The connection data for the otel endpoint. see otel server connection |