It's not JBehave that prints out these debug lines - it's Freemarker.
JBehave does not by design use any logging tool. So if you want to
reduce the "noise" you need to configure your log4j accordingly.
If you want to avoid generating the reports view:
configuredEmbedder().embedderControls().doGenerateViewAfterStories(false);
Cheers
On 03/08/2012 20:45, Shaun Patterson wrote:
After running stories, jbehave prints out several lines like this:
14:38:23,207 [main] DEBUG (Log4JLoggerFactory.java:81) - Could not
find template in cache, creating new one; id=[ftl/sh.ftl[en_US,UTF-8,
parsed] ]
14:38:23,208 [main] DEBUG (Log4JLoggerFactory.java:81) - Compiling
FreeMarker template ftl/sh.ftl[en_US,UTF-8,parsed] from
jar:file:/home/spatterson/.m2/repository/org/jbehave/jbehave-core/3.6.5/jbehave-core-3.6.5.jar!/ftl/sh.ftl
I'm creating my configuration like this:
@Override
public Configuration configuration() {
Class<? extends Embeddable> embeddableClass = this.getClass();
Properties viewResources = new Properties();
return new MostUsefulConfiguration()
.useStoryLoader(new LoadFromClasspath(embeddableClass))
.useStoryPathResolver(new UnderscoredCamelCaseResolver())
.useStoryReporterBuilder(
new StoryReporterBuilder()
.withCodeLocation(CodeLocations.codeLocationFromClass(embeddableClass))
.withDefaultFormats().withPathResolver(new ResolveToPackagedName())
.withViewResources(viewResources).withFormats(Format.CONSOLE)
.withFailureTrace(true).withFailureTraceCompression(true).withCrossReference(xref));
}
How can I make this DEBUG statement go away? Really... I don't even
want the generated html. I've never looked at them.
Any ideas?
Thanks,
--
Shaun Patterson