enable the additional PXs logging in Agile
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;
InputStream ins = YourJavaClassName.class .getResourceAsStream(“/properties/Log4j_MyPX.xml”);
new DOMConfigurator().doConfigure(ins, LogManager.getLoggerRepository());
logger = Logger.getLogger(YourJavaClassName.class);
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.