What package do I set to DEBUG in order for log.debug to work in my groovy script?

There are so many packages listed in the Logging and Profiling page.  My groovy scripts only log with log.warn right now.  I'd like to change that to log.debug, but I don't know which package to set to DEBUG logging.


Hope this makes sense.



1 answer

Added the following to my groovy script (called as a post function after the issue is created) and the only message in the log is the "warn" message. import org.apache.log4j.Level import org.apache.log4j.Logger Logger.getLogger("com.onresolve.jira.groovy").setLevel(Level.DEBUG) log.warn "warn - in membership-report.groovy" log.debug "debug - in membership-report.groovy"

It should be: log.getLogger("com.onresolve.jira.groovy").setLevel(Level.DEBUG)

actually ignore that, just run the script in the wiki page alone, that should set the level to debug.

I've had the same problem recently

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

873 views 3 9
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you