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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.