Trace: • Use log4j
This is a very technical article and it's only relevant for developers or experienced users. Usually the integrated log mechanism is good enough, but from a developer point of view it might be helpful to use a different log mechanism.
Every application will be created with a loggerfactory.properties in the test directory. If you keep the file in the test directory, your application won't use customized logging after installation/deployment. If you want to use customized logging for the installed/deployed application, just move the file to the src.server folder. To configure log4j, simply remove the # from the first line. It will look like
default.class=com.sibvisions.util.log.log4j.Log4jLoggerFactory
afterwards.
Also create a log4j.properties or log4j2.xml in the src.server folder.
This was the configuration part, now you need the log4j libraries. Please download:
and put all into the libs/server directory.
If you run your application in Eclipse or any other IDE, be sure to add all 3 libraries to your build path (classpath) and also as Deployment Assemlbies.