You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-user@logging.apache.org by Nicko Cadell <ni...@neoworks.com> on 2005/05/02 19:31:51 UTC

RE: Encripted messages

To encrypt the output written to a file you will need to subclass the
FileAppender and override the method:

virtual protected void SetQWForFiles(Stream fileStream);

In your subclass you would need to construct a
System.Security.Cryptography.CryptStream around the fileStream passed
in, and pass the CryptoStream to the base class implementation of
SetQWForFiles.

What type of encryption you use, and how you manage the keys is up to
you.

Nicko

> -----Original Message-----
> From: Bonio Lopez [mailto:bonio.lopez@gmx.de] 
> Sent: 26 April 2005 16:19
> To: log4net-user@logging.apache.org
> Subject: Encripted messages
> 
> Dear Sirs,
> What is the best way to have en encrypted logger, which 
> encrips messages, before dumping into the file?
> Thanks in advance,
> Boni
> 
> 
>