Acces to Java log messages

Have added log messages in java implementation, need to understand where log files are generated and how log file location is configured?

2 2 835
2 REPLIES 2

@Sunandita Dam

If you are using system.out.println to log your messages in the Java callout, your messages will go to to MP logs. In private cloud, the MP logs location is as follows:

{APIGEE_HOME}/apigee4/var/log/apigee/message-processor/logs/system.log

If you are on public cloud, then you will have to get in touch with Apigee Support to get the logs. Having said that there is an alternative way to log your messages into a different file. You can set variables as described in this article and use Message Logging policy to write to a different log file.

You can refer to this link to know more details about Message Logging policy.

Hope that helps.

Regards,

Amar

We are using log4j framework for logging so ideally log files should be created in message processor based on the path given in log4j configuration. Is that correct?