# How to make my custom app's logs appear in atlassian-jira.log?

**URL:** <https://community.developer.atlassian.com/t/how-to-make-my-custom-apps-logs-appear-in-atlassian-jira-log/68447>\
**Category:** Jira Server\
**Tags:** logging\
**Created:** [April 12, 2023, 1:37pm UTC](https://community.developer.atlassian.com/t/how-to-make-my-custom-apps-logs-appear-in-atlassian-jira-log/68447 "2023-04-12T13:37:16Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![MagnusVaughan](https://avatars.discourse-cdn.com/v4/letter/m/a5b964/32.png) [@MagnusVaughan](https://community.developer.atlassian.com/u/MagnusVaughan)\
**Post date:** [April 12, 2023, 1:37pm UTC](https://community.developer.atlassian.com/t/how-to-make-my-custom-apps-logs-appear-in-atlassian-jira-log/68447/1 "2023-04-12T13:37:16Z")

</div>

Hi there,

I have a custom servlet filter app, which I have uploaded to my Jira instance.

It features some logging:

I import the following at the top of my app:

```auto
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

```

I define my log inside the servlet filter class:

`private static final Logger log = LoggerFactory.getLogger(MyServletFilter.class);`

and then I log in the following way:

`log.warn("My custom application log message");`

This being the case, should I expect to see logs from this application appearing in my atlassian-jira.log file? This doesn’t seem to be the case. Are there extra steps that I have missed?

Many thanks!

---

<div class="post-metadata">

**Author:** ![ChristianSantej](https://avatars.discourse-cdn.com/v4/letter/c/c89c15/32.png) [@ChristianSantej](https://community.developer.atlassian.com/u/ChristianSantej)\
**Post date:** [April 12, 2023, 2:00pm UTC](https://community.developer.atlassian.com/t/how-to-make-my-custom-apps-logs-appear-in-atlassian-jira-log/68447/2 "2023-04-12T14:00:22Z")

</div>

Hi Magnus,

I think you have to change the logging level =\> [Change logging levels in Jira Server | Jira | Atlassian Documentation](https://confluence.atlassian.com/jirakb/change-logging-levels-in-jira-server-629178605.html)

Default level is ERROR. So just to be sure (and for initial debugging) try to use log.error instead of log.warn

Regards,  
Christian

---

<div class="post-metadata">

**Author:** ![MagnusVaughan](https://avatars.discourse-cdn.com/v4/letter/m/a5b964/32.png) [@MagnusVaughan](https://community.developer.atlassian.com/u/MagnusVaughan)\
**Post date:** [April 12, 2023, 2:33pm UTC](https://community.developer.atlassian.com/t/how-to-make-my-custom-apps-logs-appear-in-atlassian-jira-log/68447/3 "2023-04-12T14:33:29Z")

</div>

Thanks for coming back to me Christian.

Understood re: Logging levels. My app doesn’t appear in the list on the logging and profiling page.

Am I right in thinking I should manually add my app via the ‘Configure logging level for another package’ link, where I should enter the app key for my custom app?

I realise that this change would not persist after a host restart, but it would be a great first step if it can get my app logging to the default log file.

---

<div class="post-metadata">

**Author:** ![steve.behnke](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/steve.behnke/32/53219_2.png) [@steve.behnke](https://community.developer.atlassian.com/u/steve.behnke)\
**Post date:** [April 12, 2023, 3:46pm UTC](https://community.developer.atlassian.com/t/how-to-make-my-custom-apps-logs-appear-in-atlassian-jira-log/68447/4 "2023-04-12T15:46:57Z")

</div>

You’ve set this up right. Is your servlet being created/instantiated in the first place?

---

<div class="post-metadata">

**Author:** ![MagnusVaughan](https://avatars.discourse-cdn.com/v4/letter/m/a5b964/32.png) [@MagnusVaughan](https://community.developer.atlassian.com/u/MagnusVaughan)\
**Post date:** [April 12, 2023, 4:05pm UTC](https://community.developer.atlassian.com/t/how-to-make-my-custom-apps-logs-appear-in-atlassian-jira-log/68447/5 "2023-04-12T16:05:25Z")

</div>

Hi Steve,

Yes - I’ve uploaded the app and it is performing as expected.

---

<div class="post-metadata">

**Author:** ![ChristianSantej](https://avatars.discourse-cdn.com/v4/letter/c/c89c15/32.png) [@ChristianSantej](https://community.developer.atlassian.com/u/ChristianSantej)\
**Post date:** [April 13, 2023, 9:22am UTC](https://community.developer.atlassian.com/t/how-to-make-my-custom-apps-logs-appear-in-atlassian-jira-log/68447/6 "2023-04-13T09:22:44Z")

</div>

Hello Magnus,

Check the Documentation i have posted before. In the screenshot you can see it:

> **Default Loggers**  
> Note that any changes you make here are not persisted across server restarts.  
> You will need to edit ‘WEB-INF/classes/log4j.properties’ to change levels permanently.

=\> [Logging and profiling | Administering Jira applications Data Center and Server 9.1 | Atlassian Documentation](https://confluence.atlassian.com/adminjiraserver0901/logging-and-profiling-1155491939.html#Loggingandprofiling-logging_permPermanentlychangingthelogginglevel)

Regards,  
Christian

---

<div class="post-metadata">

**Author:** ![MagnusVaughan](https://avatars.discourse-cdn.com/v4/letter/m/a5b964/32.png) [@MagnusVaughan](https://community.developer.atlassian.com/u/MagnusVaughan)\
**Post date:** [April 28, 2023, 9:18am UTC](https://community.developer.atlassian.com/t/how-to-make-my-custom-apps-logs-appear-in-atlassian-jira-log/68447/7 "2023-04-28T09:18:55Z")

</div>

Many thanks for all the help on this one.

The solution turned out to be defining an output in the pom file, as described here: [Logging to atlassian-confluence.log with log4j from plug-in running Confluence 7.0.1 from the SDK - #5 by viqueen](https://community.developer.atlassian.com/t/logging-to-atlassian-confluence-log-with-log4j-from-plug-in-running-confluence-7-0-1-from-the-sdk/32020/5)
