/
Troubleshoot

Troubleshoot

If something is not working as expected, we'd be pleased to get a notice from you.

Even more so with a log attached.

Activate the logger

The library uses an NLog logger which is configured through a configuration file.
Use one of the configuration file locations listed here.

On Windows, you may use the file attached.
To use it on Linux and MacO, change the fileName, that is to say, use the path separator "/".
Furtermore, make sure that the path to the log file to exists.
and that your application has permissions to write to it.

NLog.config
<?xml version="1.0" encoding="utf-8" ?>
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      throwConfigExceptions="true">
  <!-- see https://github.com/NLog/NLog/wiki/Configuration-file -->
  <variable name="logFolder" value="C:\\temp" />
  <targets>
    <target name="logfile" xsi:type="File"
            
            fileName="${logFolder}\\log.txt"
            archiveFileName="${logFolder}\\log_${shortdate}.txt"
            archiveOldFileOnStartup="true"
            maxArchiveDays="3"
            
            layout="${longdate}|${level:uppercase=true}|${environment-user}|${threadid}|${callsite}|${message}|${exception:format=tostring}"
            header="user = ${environment:USERNAME}, arch = ${environment:PROCESSOR_ARCHITECTURE}"
            footer="_______________ "/>
  </targets>
  <rules>
    <logger name="*" minlevel="Debug" writeTo="logfile" />
  </rules>
  
</nlog>

Related content

Troubleshoot
Troubleshoot
More like this
Driver XML certificate
Driver XML certificate
Read with this
ADAC
More like this
Enable Logging
Enable Logging
More like this
1. Was sind Log-Dateien und wie erstelle ich sie?
1. Was sind Log-Dateien und wie erstelle ich sie?
More like this
1. What are log files and how can I create them?
1. What are log files and how can I create them?
More like this