How to write in the JIRA logs from a plug-in?


I've added this dependency in my pom.xml (with the provided and the compile scope too):


And from my Java classes:

private final static Logger log = LoggerFactory

Unfortunatelly, it writes nothing in the JIRA log.

I've also tried to add my onw log4j configuration in the pom.xml:


and even it creates a new log file in the specified location, it is empty too.

Any ideas?



2 answers

1 accepted

2 votes
Answer accepted

Your project is fine, I think you havent enabled the package to be logged in JIRA (dont pack a file in your plugin, not useful). Go to Logging and Profiling, scroll down, add a custom package com.whatever, set it to DEBUG level, then you'll get logging output.

dont pack a file in your plugin, not useful

Ok. I'll remove it from the pom.xml

Go to Logging and Profiling...


JIRA System Administration screen > Troubleshooting and Support > Logging and Profiling

Can I add my own package or plugin programmatically and permanently to the section "Logging and Profiling"?

0 votes

How are you making the log calls? You still need to rell it to put output into the log, with the various levels, and set those levels in your logging and profiling settings e.g.

log.debug("This will come out in the log if the log level is set to debug");

I'm doing that with debug, info, warn and error. But nothing is shown in the logs...

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 13, 2019 in Marketplace Apps

Marketplace Spotlight: Marketing apps for Confluence to keep your teams working on the same page


242 views 0 6
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