Log custom debug messages - iX sample
The Apache log4net library is a tool to help the programmer output log statements to a variety of output targets. log4net is a port of the excellent Apache log4j™ framework to the Microsoft® .NET runtime.
The iX Developer implements the log4net library into its’ framework and a programmer can use log4net in iX Developer. For more information, please refer to Apache log4net project official website.
Target device: X2 series
With this library solution it’s easy to log custom debug messages that will help you to debug an iX application in different production lifetime. For example, you can log the DEBUG level message, and then the log can be used for checking the program scenarios as you expected in the development phase. And logging ERROR level message in the production phase (in the field).
It makes it possible to get back some information from your customers or different departments to analyse what might be the root cause of the system crash when they are using your iX applications. The default level is INFO in iX automatically generated log4net.config. You can modify it before downloading the iX application to an X2 or iX RT target.
• Package V1.0.0 is the first released version (2020-11-18)
Developed and supported for:
• iX Developer 2.40 SP4 / SP5
• X2 series and iX Runtime, including C2 Series
• SER0012_V1.0.0_package_iX Log4Net.zip
The zip file contains a sample project and a quick start guide:
• SER0012_V1.0.0_iX_Log4Net.zip (iX application)
If you previously downloaded the package file from SmartStore, find the download link in submenu My account > My apps, when logged in!