How to configure Confluence logging to prevent multiline events?


I need Confluence to log events in one line, not multiline events. Confluence logs span across multiple lines. Default ConversionPattern setting in "...\confluence\WEB-INF\classes\" is

log4j.appender.confluencelog.layout.ConversionPattern=%d %p [%t] [%c{4}] %M %m%n

Where m% is

"Used to output the application supplied message associated with the logging event"

This means newlines are already inside the %m, supplied by Confluence, so no way to configure this in log4j properties.

Is there any way to prevent Confluence from logging events in multiple lines?

Is there any configuration file/setting where the format of the "application supplied message" can be formatted to use only one line?


1 answer

1 accepted

1 vote
Boris Berenberg Community Champion Mar 15, 2013

Hey Enrique,

There is no one place to configure that. You would have to download the source and rewrite every single error message to meet your needs.


Hi Boris,

That sounds like bad news to me. I was trying to use Hyperic log tracking but Hyperic just ignores multiline events, so not very useful, as user name, referrer, page and action fields are in the second line of a multiline event. I suppose I can look for a a solution somewhere else but I believe this could be a useful configuration option.

Thanks a lot for your answer.

Cheers, Enrique.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,691 views 25 10
Join discussion

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