Skip to main content

Enabling Trace Logging for POS Integrations / Apps

We may need to get detailed logs from your system. this article provides the steps to enable trace logging

Updated over 2 months ago

In some cases, we may need to get detailed logs from your system. To get the highest level of detail, we'll need to enable trace logging.

This will produce a log file, which can then be emailed to our support team.

1. Download the following file onto the computer: NLog.config

a. If you prefer, you can copy and paste the "Trace Logging" file below

2. In Windows file explorer, browse to the base directory for the application

a. For the POS / Printer Service, this is usually C:\Program Files\Online Ordering\POS Integration for Online Ordering or C:\Program Files (x86)\Online Ordering\POS Integration for Online Ordering
b. For the Order Management application, this is usually C:\Program Files\Online Ordering\Order Management or C:\Program Files (x86)\Online Ordering\Order Management

3. In that directory, there should be an existing NLog.config file
4. Copy the new NLog.config file into the directory, replacing the existing file
5. Restart the app or service in question to enable the new log settings
6. Reproduce the issue in question, to generate a log file

a. The log file will be located at C:\online_log.txt

7. Email the log file to Paytronix Online Ordering support
8. After the error is resolved, trace logging should be disabled to avoid creating very large files. Repeat the above process with this file: NLog.config

a. If you prefer, you can copy and paste the "Normal Logging" file below

NLog Configuration File - Trace Logging

<?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">;   <targets>     <target name="logfile" xsi:type="File" fileName="C:\online_log.txt" layout="${longdate}|${level:uppercase=true}|${logger}|${message}|${exception:format=tostring:maxInnerExceptionLevel=2}|${callsite}" />   </targets>    <rules>     <logger name="*" minlevel="Trace" writeTo="logfile" />   </rules> </nlog>

Note: NLog.config hosted

User-added image

with by GitHub - view raw

NLog Configuration File - Normal Logging

<?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">;   <targets>     <target name="logfile" xsi:type="File" fileName="C:\online_log.txt" layout="${longdate}|${level:uppercase=true}|${logger}|${message}|${exception:format=tostring:maxInnerExceptionLevel=2}|${callsite}" />   </targets>    <rules>     <logger name="*" minlevel="Error" writeTo="logfile" />   </rules> </nlog>

Note: NLog.config hosted

User-added image

with by GitHub - view raw

Did this answer your question?