1 Reply Latest reply on Jan 19, 2017 10:15 AM by mourad mourad

    Drools Logging

    nikosmak Newbie

      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");




      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,