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
Accepted answer
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
Community showcase
Posted Feb 06, 2019 in Confluence

Try out the new editing experience

Hi team, I’m Avinoam, a product manager on Confluence Cloud, and today I’m really excited to let the Community know that all customers can now try out the new editing experience and see some of the ...

1,015 views 51 8
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