Skip to main content

Documentation Portal

How to change the connector log level?

Changing the log level can be done by doing a PUT on the connector API console at the /api/log endpoint.

e.g: PUT /api/log?level=WARN

DB_Log_1.png

The following log levels are supported:

Level

Description

Error

Only show error messages

Warn

Show Error and Warning messages. Default setting.

Info

Show Info, Warning and Error messages. Shows all requests to Plant Integration and how long they took.

Debug

Show Debug, Info, Warning and Error messages. Can be verbose. It has important information for debugging purposes.

Debug log level could have a performance impact and it is advised to only apply this log level temporarily on a production setup.

Trace

Show all log messages. Can be considerably verbose. Logged information can have points data.

Trace log level has high impact on the connector performance and is not advised in a production setup, or only very briefly.

Important

Do not forget to set the log level to info/warn after troubleshooting, as Debug and Trace modes could slow down performance.

Note

Whenever the connection pool is restarted the default log level is restored. The default log level can be changed by updating the NLog.config file which you can find in the connector directory (e.g. C:\inetpub\<your-connector-directory>)

default-log-level.png