It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Custom log4j.properties with Jira 5

Hello,

I'm trying to enable some custom logging with log4.properties file for my plugin package, but still, it doesn't work.

Of course, I followed official documentation (like https://developer.atlassian.com/display/DOCS/Using+your+own+log4j+configuration+for+your+plugin) and many of others articles or threads here, but still no luck

When I enable the debugging directly in the Jira for my package, then it works. So maybe my log4j.properties file is being rewritten by Jira at atlas-run?

Also I have tried --log4j parameter for atlas-run, no luck as well :(

Could it be a problem with syntaxe of my custom log4.properties? Could you please show me correct version of such file?

Thanks!

2 answers

1 accepted

0 votes
Answer accepted

Damn :( it was completely my fail, there was tiny typo in the log4j configuration :( Fixed…no problem now.

One question is how to log form inside your pluggin without having to override atlassian log4j.properties ? Is it possilbe to do this? How?

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira

We want to hear from you! How do you use Slack and Atlassian together?

Hi Everyone! My name is Mina and I am on Atlassian’s Ecosystems Marketing team. Our team is focused on our technology partnerships and marketplace apps. One of Atlassian’s partners is Slack, who ...

44 views 0 4
Join discussion

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you