BasicConfigurator.configure();
log.setLevel(Level.DEBUG);
Thursday, November 11, 2010
Setting up quick log4j for testing
Just put the following code on top of your code:
Wednesday, November 10, 2010
log.debug not working in grails unit test
Use the following method call to enable debug level messages to be printed.
where, grails_artifact_class is domain/controller/service class.
mockLogging(grails_artifact_class, true)
where, grails_artifact_class is domain/controller/service class.
Friday, November 5, 2010
Exception while starting grails from STS
Problem: Getting java.lang.ClassNotFoundException: sun.tools.native2ascii.Main while starting grails application from STS.
Solution: Go to build path. Change your default system JRE to JDK. You are good!
Solution: Go to build path. Change your default system JRE to JDK. You are good!
Subscribe to:
Posts (Atom)