You are on page 1of 3

How to: Configure logging in AX Retail Point of Sale

Further Reading
Tracing and Instrumenting Applications Trace Switches Trace Listeners

Tutorial
AX Retail Point of Sale allows different predefined logging levels. By default, error level logging is turned on for the Windows event viewer and warning level logging for the xml logger at %Temp%\RetailLogs\Pos.exe. It may be useful for debugging to enable different levels of logging. However, performance of POS will be affected as the amount of logging becomes higher and higher. 1. Find directory where POS was installed. a. Right click on the Retail POS icon and choose Properties.

b. Browse to the path in the Start in text box using Windows exlporer.

2. In the POS installation folder, find POS.exe.config and open it in notepad. 3. There are two major ways to configure tracing: a) change the trace switch level or b) add another trace listener. a. Change the trace switch level this allows you to control how much information is logged. Error is the least amount of information while Verbose is the most. Please see the further reading section for more information. i. Look for the <sources> node under <system.diagnostics> node. ii. Find the <source> node where you wish to change the logging level and change it to whatever level is desired. b. Add another trace listener A trace listener waits for traces to happen and then can process them in any manner desired. For example, out of the box, POS traces to the event log as well as an xml file. Adding a trace listener is beyond the scope of this document but is thoroughly covered in the further reading sections.

Example
... <system.diagnostics> <sources> <source name="RetailNetTracerEventLog" switchValue="Info"> <listeners> <add name="EventLogTraceListener" /> </listeners> </source> ... </sources> ... </system.diagnostics> ...

You might also like