How to create a separate log file for Java Callout other than system.log?

Not applicable

For the development of API proxy using Java Callout ongoing now, slf4j in java is used, but log is output to the following files.

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

And the log of Router/MessageProcessor is output in the same that is not convenient. So, we want to know how to separate the log file for java from system.log. I would appreciate your suggestion on the above requirement.

Solved Solved
2 2 643
1 ACCEPTED SOLUTION

Hi @Toshihiro Shibamoto,

It is not possible to change the log destination only for Java callouts

If you are looking for ways to debug/troubleshoot your javacallouts, this article might help you

https://community.apigee.com/articles/5314/debuggi...

If you still need to log them into separate file, you could set variables as specified in the article above and use a MessageLogging policy to write to a different file.

Hope this helps!

Thanks,

View solution in original post

2 REPLIES 2

Hi @Toshihiro Shibamoto,

It is not possible to change the log destination only for Java callouts

If you are looking for ways to debug/troubleshoot your javacallouts, this article might help you

https://community.apigee.com/articles/5314/debuggi...

If you still need to log them into separate file, you could set variables as specified in the article above and use a MessageLogging policy to write to a different file.

Hope this helps!

Thanks,

@mukundha Thank you very much for the link to reference. I'll take a look at the post and also try to manage separate log files with using Message Logging policy as you suggested. I appreciate your help.