log4j is always one of the best logging frameworks available. But, adding a log4j framework in RCP application can be quite a hectic sometime, because we need to add the references in many files and many places. Also, while working on my own, it tooks me a few hours to figure what they are! So, I decided to sum them up in this tutorial.
So, let us start adding log4j framework in RCP application.
Step 1: Obviously the first step is downloading latest version of log4j.jar. I downloaded log4j-1.2.17.jar. Save the jar inside a folder (namely lib) in side the workspace.
Step 2: Next step is to create a log4j.properties. I am not going in to the detail of how to create one. Rather I will use a simple template for that.