Share all details related to your problem, including any error messages you may have received.
I am troubleshooting an error with a custom rule that was created before I started this position. This was created with Log4j implemented, but I’m not sure how I can create/use an existing logger to trace what is happening in this rule. I see the below line in the rule, not sure if this is used as the logger itself:
Logger name mentioned in quote is the class name and it should have entry in your log4j2 properties(present in WEB-INF\classes) if it was a working snippet. So, for the same you can get the log file name from this log4j2.properties file or depending upon configuration it may be printing details in primary log file also.
@Alyson_Trad
You can also configure the log level directly in the rule (no need to update the log4j2.properties file)
import org.apache.log4j.*;
private static org.apache.log4j.Logger log = Logger.getLogger(rule.approval.assignment);
log.setLevel(Level.WARN);
//This will print all info and Warn.