I already used logging in an activitiy using Log-Message Step and putting Level = Error. But, I want to debug my java code, I cannot use System.out.println. How to use logging inside a Java block? It is using log4j as well?
If your java code is a step in an activity then that activity should be set at debug logging level to see the debug statements. Similarly if the java code is in a Rule-Utility-Function, then that function should be at debug logging level and so on.