Hi experts,
I’m upgrading from 7.2.3 to 7.3.3 and when opening my process I get errors in these Groovy sentences:
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
“Access restriction: The type ‘Logger’ is not API (restriction on required library 'D:\BonitaBPMCommunity-7.3.3\plugins\org.bonitasoft.studio.console.libs_7.3.3.201610061535\lib\slf4j-api.jar”
How can I solve this?
Thanks a lot,
Jose.
You can use java.logging.Logger instead of slf4j.
Best regards,
bpms.help
You can do logging on groovy script as follows.
import java.util.logging.Logger;
Logger logger= Logger.getLogger(“org.bonitasoft”);
logger.info(“Log Info ____=============”);
logger.warning(“Log Warning ____=============”);
logger.fine(“Log Fine ____=============”);
P.S. Please mark as helpful if it solves your problem.
Thanks for your help. Why documentation refers to slf4j? Can you post a sample o java logging, please?