For enabling EEM SDK logging, make sure that EEM SDK is installed on the machine on which the logging is to be performed.
For Windows platform:
Here are the steps to enable EEM java SDK logging:-
- Copy/extract eiam.config and eiam.log4j.config in a directory of the embedding application server from the config.zip file. Assuming that the files are copyed/extracted the c:\casupport directory
- Set EIAMCONFIG to absolute path to eiam.config file.
Eg: set EIAMCONFIG=location where the above two .config files are located:\\eiam.config (Two \\ are required)
set EIAMCONFIG=c:\casupport\\eiam.config
- Verify if the EIAMCONFIG is set correctly by checking the same by opening a new command prompt. In the new command prompt execute - echo %EIAMCONFIG%.
- Edit eiam.config and put absolute path of eiam.log4j.config file.
Eg: <LoggerConfiguration file="c:\casupport\eiam.log4j.config"/>
- Change log level from "error" to "trace" in eiam.log4j.config file
Eg: <root> <priority value="trace" />
- Restart application which is using EEM Java SDK.
- Check if the eiam.javasdk.log is being generated.
- Once the eiam.javasdk.log is being generated, the java SDK is enabled properly.
- Replicate the problem and save the eiam.javasdk.log file, this file should be send across for further investigation.
For Linux and UNIX platforms
- Copy/extract eiam.config and eiam.log4j.config in a directory of the embedding application server from the config.zip file. Assuming that the files are extracted copied over in the /home/casupport directory.
- Set and Export EIAMCONFIG to absolute path to eiam.config file.
Eg: export EIAMCONFIG=location where the above two .config files are located:/eiam.config
# export EIAMCONFIG=/home/casupport/eiam.config
- Verify if the EIAMCONFIG variable is set and exported properly by running, echo $EIAMCONFIG from a terminal window
- Edit eiam.config and put absolute path of eiam.log4j.config file.
Eg: <LoggerConfiguration file="/home/eiam.log4j.config"/>
- Change log level from "error" to "trace" in eiam.log4j.config file
Eg: <root> <priority value="trace" />
- Restart application which is using EEM Java SDK.
- Check if the eiam.javasdk.log is being generated.
- Once the eiam.javasdk.log is being generated, the java SDK is enabled properly.
- Replicate the problem and save the eiam.javasdk.log file, this file should be send across for further investigation.