Access restriction: The type 'Logger' is not API when upgrading from 7.2.3 to 7.3.3

1
0
-1

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.

2 answers

1
+1
-1

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.

1
+1
-1

You can use java.logging.Logger instead of slf4j.

Best regards,
bpms.help

Comments

Submitted by josegante on Mon, 10/24/2016 - 21:26

Thanks for your help. Why documentation refers to slf4j? Can you post a sample o java logging, please?

Notifications