Table of Contents |
---|
| outlinh1. true |
---|
| outlinh1. true |
---|
1 | printablefalse |
---|
2 | stylh1. none |
---|
3 | indent20px |
---|
|
Some jobs of JobScheduler use log4j for logging and it could be necessary to configure these jobs with its own log4j configuration. To do this there are in general different possibilities described below.
Currently it is not allowed to use log4j configuration in xml format.
To do this the configuration file has to be placed in the classpath defined in your factory.ini. To enable log4j to find it automatically it has to be stored under the name log4.properties.
Beacause some of the libraries uses by JobScheduler comes with its own log4.properties file, it is not recommended to select these possibility, because it is not determined which of the property files is selected.
To do this, you can place the following setting in your scheduler.xml (as an attribute of the config element).
Code Block |
---|
|
<config ... java_options="-Dlog4j.configuration=file:/$\{SCHEDULER_DATA\}/config/my-log4j.properties" />
|
To do this, you can place the following setting in your job configuration.
Code Block |
---|
|
<job ... java_options="-Dlog4j.configuration=file:/$\{SCHEDULER_DATA\}/config/my-log4j.properties" />
|