I am getting error as below:
Caused by: org.apache.commons.discovery.DiscoveryException: Class org.apache.commons.logging.impl.SLF4JLogFactory does not implement org.apache.commons.logging.LogFactory
Hello @kunti pawar can you provide code expamle of you logger declaration?
If you want to use slf4j it should be like this:
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
final Logger log = LoggerFactory.getLogger("my logger");
I am using below code:-
import org.apache.log4j.Logger
import com.polarion.alm.ws.client.WebServiceFactory;
import com.polarion.alm.ws.client.session.SessionWebService;
import com.polarion.alm.ws.client.tracker.TrackerWebService;
import com.polarion.alm.ws.client.types.tracker.WorkItem;
def myLog = Logger.getLogger("com.onresolve.jira.groovy")
myLog.info("Hello kunti from Jira")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @kunti pawar
Does replace log4j with slf4j help you?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.