title: Custom Story Reporters in Jbehave
body: <p>I am following the below posts for creating a Custom Reporter in my JBehave.</p>
  
  <p><a href="https://stackoverflow.com/questions/11134963/additional-logging-jbehave/12028916#12028916">Additional logging JBehave</a></p>
  
  <p><a href="https://stackoverflow.com/questions/19587337/jbehave-results-displayed-on-a-webpage/19724121#19724121">JBehave results displayed on a webpage</a></p>
  
  <p>Whenever I try to create a class, I am getting the below error.</p>
  
  <p><code>WebStories.MyStoryReporter is not abstract and does not override abstract method pendingMethods(java.util.List&lt;java.lang.String&gt;) in org.jbehave.core.reporters.StoryReporter</code></p>
  
  <p>So now I have made the class as <code>abstract</code> as shown below</p>
  
  <p><code>public class MyStoryReporter implements org.jbehave.core.reporters.StoryReporter</code></p>
  
  <p>Now the real problem is I cannot call the <code>MyStoryReporter</code> from <code>.withReporters</code> since its an abstract class</p>
  
  <pre><code>.useStoryReporterBuilder(new StoryReporterBuilder()
                      .withCodeLocation(codeLocationFromClass(embeddableClass))
                      .withDefaultFormats()
                      .withFormats(ANSI_CONSOLE, HTML, XML, STATS)
                      .withFailureTrace(true)
                      .withReporters(new MyStoryReporter));
  </code></pre>
  
  <p>I think I am missing some basic things. Can anyone help me in this context.</p>