How to configure Confluence logging to prevent multiline events?

Hi,

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\log4j.properties" 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?

Thanks

1 answer

1 accepted

This widget could not be displayed.
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.

Cheers,
Boris

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 Monday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

269 views 2 4
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