Hi,

Which log4<X> are you using? For log4net you can implement a LockingModel 
[1] for the (rolling) file appender that wraps the aquired stream. This 
works quite nicely for compression (wrap the underlaying file stream in a 
gzip stream [2]) or encryption (wrap in crypto stream [3]).

Just ensure the configuration can't be altered; else it's trivial to 
disable encryption...

[1]: 
https://logging.apache.org/log4net/release/sdk/html/P_log4net_Appender_FileAppender_LockingModel.htm
[2]: 
https://msdn.microsoft.com/en-us/library/system.io.compression.gzipstream
[3]: 
https://msdn.microsoft.com/en-us/library/system.security.cryptography.cryptostream

Regards,
Jonas



Von:    "Walter Heestermans (TME)" 
<walter.heesterm...@external.toyota-europe.com>
An:     "dev@logging.apache.org" <dev@logging.apache.org>
Datum:  02.02.2018 12:01
Betreff:        [Newsletter] Extend daily log file appender



Hi,

For GDPR we should have some log4 log appender (extended from daily log 
file appender) that encrypts the log information.

Anybody aware of some appender doing that? If not can somebody provide 
sample to create own appender based on the default daily file logger?

Regards
Walter



This e-mail may contain confidential information. If you are not an 
addressee or otherwise authorised to receive this message, you should not 
use, copy, disclose or take any action based on this e-mail. If you have 
received this e-mail in error, please inform the sender promptly and 
delete this message and any attachments immediately.


Reply via email to