Add a custom converter to your PatternLayout:
Or extend PatternLayout if you're going to re-use the converter across multiple
appenders:
From: Joseph.r
To: log4net-user@logging.apache.org
Sent: Saturday, June 2, 2012 9:20 PM
Hello,
I just changed my code to incorporate log4net.Core.ILogger instead of the
comfort class log4net.ILog. With the Logger Wrapper Type always entered at
the call of the log method, it now works. using only the ILog interface
shows broken (as explained) behavior. I may be wrong, but this isn'
Yes it does
Cheers
Pascal
On 3 June 2012 07:55, Lee Chun Kit wrote:
> If you change your configuration
> from
>
> to
>
> does the overwriting still happen?
>
> Regards,
> Chun Kit
>
>
> On Sat, Jun 2, 2012 at 12:19 AM, Pascal ROZE
> wrote:
> > Hello everyone
> >
> > I have a rolling file app
The way I'm doing it now is by calling this line:
private static readonly log4net.ILog log =
log4net.LogManager.GetLogger(System.Reflection.MethodBase
.GetCurrentMethod().DeclaringType);
From what I see in your example, the important thing is to give the logger
your current logging m