Logging in Java

  1. Open your project in Eclipse.
  2. You will now need to add the log4j.jar file to your project. Right click on lib and select Import - from File System. Browse to the folder you stored it in and select it. The file can also be found in the Auxiliary Deployment Files folder in the Linxter SDK download.
  3. Add the log4j.xml file to your project. Right click on src and select Import - from File System. Browse to the folder you stored it in and select it. The file can also be found in the Auxiliary Deployment Files referenced previously.
  4. You are almost done! The only item left is to choose the output target of the Linxter SDK logging. Within the log4j.xml file, for the appender-ref ref="" value in the root section at the bottom, you can enter:
    • null - no output
    • console - logging output to the console
    • file - logging output to a text file