I want to false the condition for " logger.isDebugEnabled()
" in Groovy
this is my code.
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.core.env.PropertyResolver;
public class Sample{
private static final Logger logger = LoggerFactory.getLogger(Sample.class);
public void checkcode(String scope) {
if (logger.isDebugEnabled()) {
logger.debug("some message ");
}
}
}