Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to use own log4j property file in plugin

Joel Suter April 13, 2018

I am trying to use a custom logback.xml configuration file for my plugin to log. I have one in the resources folder of my plugin and I load it in my java code. The problem seems to be that my plugin isn't using the custom logback.xml configuration file, but still uses the one that Bitbucket uses. 

The reason I try to do that is because every time I try to log something at INFO level it doesn't show up in any of the files or console. And because I don't want to change the existing configuration files I try to use my own. The best thing would be using the existing ones and add some more configuration in my costum logback.xml so that I don't have to write a whole new one (so a combination of the existing one and my custom, but I can't load it and don't know how to load multiple). 

Does anyone have answers to my problem? What is the best way to solve my problem?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events