title: Configure logging in Groovy
body: <p>I am using java logging in Groovy and I wanted to modify the format string so I only have one line instead of two, but the methods I tried didn't work - I looked at this question: </p>
  
  <p><a href="https://stackoverflow.com/questions/194765/how-do-i-get-java-logging-output-to-appear-on-a-single-line">How do I get java logging output to appear on a single line?</a></p>
  
  <p>I tried passing the property to groovy, but it didn't change the format. </p>
  
  <p>I passed it like this: </p>
  
  <p><code>groovy myScript.groovy -Djava.util.logging.SimpleFormatter.format=%1$tF %1$tT</code></p>
  
  <p>but it doesn't look like it was picked up.</p>