B
Bogus Exception
....or to be more precise, how to write only data (payload) to the log4j
appender...
I want all the benefits of log4j, but none of the seemingly required
overhead of ConversionPattern variables. In other words, I want to
control every single byte that is written, with nothing added by log4j.
This will not work:
[...]
log4j.appender.A3=org.apache.log4j.FileAppender
log4j.appender.A3.File=logs/some.log
log4j.appender.A3.Append=false
log4j.appender.A3.layout=org.apache.log4j.PatternLayout
log4j.appender.A3.layout.ConversionPattern=
but this, expectedly, will:
[...]
log4j.appender.A3.layout.ConversionPattern=%d{yyyyddMMHHmmss} [%c{1}]
%p - %m%n
Perhaps the PatternLayout is not the right choice?
I can't find a combination in log4j that will simply allow me to write
anything I want to the appender, but WITHOUT anything extra.
TIA!!!
appender...
I want all the benefits of log4j, but none of the seemingly required
overhead of ConversionPattern variables. In other words, I want to
control every single byte that is written, with nothing added by log4j.
This will not work:
[...]
log4j.appender.A3=org.apache.log4j.FileAppender
log4j.appender.A3.File=logs/some.log
log4j.appender.A3.Append=false
log4j.appender.A3.layout=org.apache.log4j.PatternLayout
log4j.appender.A3.layout.ConversionPattern=
but this, expectedly, will:
[...]
log4j.appender.A3.layout.ConversionPattern=%d{yyyyddMMHHmmss} [%c{1}]
%p - %m%n
Perhaps the PatternLayout is not the right choice?
I can't find a combination in log4j that will simply allow me to write
anything I want to the appender, but WITHOUT anything extra.
TIA!!!