Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,363,059
Community Members
 
Community Events
168
Community Groups

Where can I check the log from log.info("XXX") commands made in a groovy script

Check log after log.info() calls have been made from a groovy script

1 answer

1 accepted

4 votes
Answer accepted

Hi @Steven VanderVelde 

It should be in JIRA_HOME/log

If you are using Scriptrunner there is the history of the last 15 execution that display the log by clicking on the faild or success logo.

srLogs.PNG

 

If you are not able to see it in the file, you need to change the log level or log using log.error()

okay thanks! Where is JIRA_HOME/log? somewhere on JIRA?

JIRA_HOME is on the server and the path that have been defined during the installation.

 

If you want to set the log level within the script you can do it like that:

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

def log = Logger.getLogger("com.test.listener")
log.setLevel(Level.INFO)
log.warn event
log.error event
log.info event

You can also check the log from the JIRA using Scriptrunner by going to Built-in Script in Scriptrunner > view logs and select atlassian-jira.log that is the file you are looking for .

Like Steven VanderVelde likes this

Suggest an answer

Log in or Sign up to answer