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 "Edward Williams (Icertis Inc)" <v-...@microsoft.com> on 2014/01/29 20:29:49 UTC

log4net filling memory in prod

Is there a way using log4net to limit the memory usage for logs?  The thread and private byte could goes out the window.  Also if trying to log to a path that the system doesn't have rights it holds onto the events.  Is there a setting for simply dropping log entries that can't be saved?

Thank you!

Re: log4net filling memory in prod

Posted by Dominik Psenner <dp...@gmail.com>.
Async appenders can be configured lossy, by the means that they will loose
events once their buffer is full:

http://logging.apache.org/log4net/release/sdk/log4net.Appender.BufferingAppenderSkeleton.Lossy.html


2014-01-29 Edward Williams (Icertis Inc) <v-...@microsoft.com>:

>  Please excuse my typos.  Nearly cut off my hand in November, still
> trying to type/work with it.  J  Corrected below.
>
>
>
> *From:* Edward Williams (Icertis Inc) [mailto:v-edwi@microsoft.com]
> *Sent:* Wednesday, January 29, 2014 11:30 AM
> *To:* log4net-user@logging.apache.org
> *Subject:* log4net filling memory in prod
>
>
>
> Is there a way using log4net to limit the memory usage for logs?  The
> thread and private byte *count* goes out the window.  Also if trying to
> log to a path that the system doesn't have rights *to* it holds onto the
> events.  Is there a setting for simply dropping log entries that can't be
> saved?
>
>
>
> Thank you!
>



-- 
Dominik Psenner

RE: log4net filling memory in prod

Posted by "Edward Williams (Icertis Inc)" <v-...@microsoft.com>.
Please excuse my typos.  Nearly cut off my hand in November, still trying to type/work with it.  :)  Corrected below.

From: Edward Williams (Icertis Inc) [mailto:v-edwi@microsoft.com]
Sent: Wednesday, January 29, 2014 11:30 AM
To: log4net-user@logging.apache.org
Subject: log4net filling memory in prod

Is there a way using log4net to limit the memory usage for logs?  The thread and private byte count goes out the window.  Also if trying to log to a path that the system doesn't have rights to it holds onto the events.  Is there a setting for simply dropping log entries that can't be saved?

Thank you!