logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aanjaneya shukla <shuklaaanjan...@gmail.com>
Subject Re: Modifying the content to be shown in log files using properties files by blacklisting charters
Date Fri, 07 Oct 2011 20:21:32 GMT
Can you please guide me to any examples, it would be lot quicker.

Thanks,
Aanjaneya

On Fri, Oct 7, 2011 at 8:28 PM, Scott Deboy <scott.deboy@gmail.com> wrote:
> Yes it is possible to modify log messages before they are sent to an
> appender. Use a rewriteappender, implement you own rewritepolicy, and
> include an appender-ref to the destination appender in the rewriteappender
> definition along with the rewritepolicy.
>
> Scott
>
>
>
> On Oct 7, 2011, at 7:37 AM, aanjaneya shukla <shuklaaanjaneya@gmail.com>
> wrote:
>
>> Hi,
>>
>> To avoid log injection by newline charters, is it possible to modify
>> the contents of user defined messages in the log files? I want to
>> black list certain charters defined in the property file its with
>> adding any code to my framework.
>>
>> Thanks,
>> Aanjaneya.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>> For additional commands, e-mail: log4j-user-help@logging.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message