Our drl files contain a method that logs messages using the slf4j framework.
Moreover in the drl file we use the following piece of code:
function void log(String message){
Logger logger = LoggerFactory.getLogger("loggerName");
logger.info(message);
}
Although this works and we can see logs in the console we cannot present the rule name of the logger to the logs.
Instead we see the following log:
default package.Log log (message).
How can we view the logger name in the log files?
Best Regards,
Hi,
You can use out of the box the event listeners to log all the informations about your rule (rule name) and you fact :
AgendaEventListener (KIE :: Public API 6.5.0.Final API)
KIE :: Public API 6.5.0.Final API
Cheers,
Mourad