logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From emacslisp <wudi850...@hotmail.com>
Subject how to make log4net exclude Stack Trace
Date Mon, 09 Feb 2015 01:53:18 GMT
By default, log4net will log Stack Trace.

I create a wraper which inherit from "ILog" and implement "ILog" interface

public class MyLogger : ILog
    Error(object message, Exception exception)
        log.Error(exception.Message);//Now it will show message only.

then log4net.ILog log = new

it could work.

However, I want to config log4net without logging stack trace.

but I could not find any useful information.

View this message in context: http://apache-logging.6191.n7.nabble.com/how-to-make-log4net-exclude-Stack-Trace-tp53708.html
Sent from the Log4net - Users mailing list archive at Nabble.com.

View raw message