Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Java logging output has duplicated lines

Bruce Mohler
Contributor
September 19, 2019

We're using Java logging in our Groovy scripts and on our production server, every line output is duplicated.

This is the code:

Groovy imports...

import org.apache.log4j.Logger
import org.apache.log4j.Level
import org.apache.log4j.Category

def log = Logger.getLogger("com.onresolve.jira.groovy")
log.setLevel(Level.INFO)
log.info("Initialized logging. So far, so good.")

...

This is what the output looks like:

2019-09-19 16:16:45,403 INFO [jira.groovy]: Initialized logging. So far, so good.
2019-09-19 16:16:45,403 INFO [jira.groovy]: Initialized logging. So far, so good.
2019-09-19 16:16:45,404 INFO [jira.groovy]: Instantiated IssueService.
2019-09-19 16:16:45,404 INFO [jira.groovy]: Instantiated IssueService.

I'm assuming that this is some configuration issue with the larger Jira application.  Can anyone point me to where to look to fix this?

TYIA

4 answers

1 accepted

0 votes
Answer accepted
Bruce Mohler
Contributor
October 24, 2019

Okay, it's been 3 weeks.  I give up.

0 votes
Bruce Mohler
Contributor
October 7, 2019

Anyone?  Anyone at all?

0 votes
Bruce Mohler
Contributor
October 1, 2019

Anyone from Atlassian?  (crickets)

0 votes
Bruce Mohler
Contributor
September 25, 2019

Anyone?

Suggest an answer

Log in or Sign up to answer