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.

 

THANKS!

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

246 views 4 10
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