How to enabled EEM client side JAVA SDK logging.

Document ID : KB000050061
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

This document shows the required steps to be performed to enable SDK logging for EEM 8.4 SR02 till EEM 8.4 SP4.

This document also shows the steps for Java, CPP and C# SDK logging.

Solution:

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:-

  1. 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

  2. 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

  3. 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%.

  4. Edit eiam.config and put absolute path of eiam.log4j.config file.

    Eg: <LoggerConfiguration file="c:\casupport\eiam.log4j.config"/>

  5. Change log level from "error" to "trace" in eiam.log4j.config file

    Eg: <root> <priority value="trace" />

  6. Restart application which is using EEM Java SDK.

  7. Check if the eiam.javasdk.log is being generated.

  8. Once the eiam.javasdk.log is being generated, the java SDK is enabled properly.

  9. Replicate the problem and save the eiam.javasdk.log file, this file should be send across for further investigation.

For Linux and UNIX platforms

  1. 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.

  2. 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

  3. Verify if the EIAMCONFIG variable is set and exported properly by running, echo $EIAMCONFIG from a terminal window

  4. Edit eiam.config and put absolute path of eiam.log4j.config file.

    Eg: <LoggerConfiguration file="/home/eiam.log4j.config"/>

  5. Change log level from "error" to "trace" in eiam.log4j.config file

    Eg: <root> <priority value="trace" />

  6. Restart application which is using EEM Java SDK.

  7. Check if the eiam.javasdk.log is being generated.

  8. Once the eiam.javasdk.log is being generated, the java SDK is enabled properly.

  9. Replicate the problem and save the eiam.javasdk.log file, this file should be send across for further investigation.
File Attachments:
TEC558800.zip