enable the additional PXs logging in Agile

Dear All,

I am new to agile, need to enable the additional PXs logging in Agile. Please let me know, how to enable this.

Thanks
No Files Were Attached
Sai Agile User Asked on January 10, 2019 in Others.
Add Comment
3 Answer(s)

Hi Sai,

What kind of PX you are writing.  You can use log4j to generate logs as per your wish. Sharing a quick snippet from my code.  You can place it before your  ActionResult method and test.

public static Logger logger = null;

static {
try {

InputStream ins = YourJavaClassName.class .getResourceAsStream(“/properties/Log4j_MyPX.xml”);

            new DOMConfigurator().doConfigure(ins, LogManager.getLoggerRepository());
          logger = Logger.getLogger(YourJavaClassName.class);
}
}

Regards,
Arif

Arif Agile Angel Answered on January 10, 2019.
Add Comment

Hi Arif,

Thank you for the response.

3rd party PX’s are configured in Agile but now need to enable the additional logging for existing PX’s for to monitor the transaction flow of JARS.

Thanks,
Sai

Sai Agile User Answered on January 10, 2019.
Add Comment

You are implying that existing PXs are configured without loggers or SOPs or you need additional logging apart from log4j. If the later to be true then i suggest going to
Administration >> Logging Configuration and see if you can use additional logging option.  Note, these settings gives you logs based on the Jars on Core-APIs not sure how much they will help you on custom PX.

Arif Agile Angel Answered on January 11, 2019.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.