How to log stack trace with log4net? I am using .Net version.
log4net
.Net
They way I have is Log.Error(ex).
Log.Error(ex)
Thanks
You can extend the ILog to have a method that logs just an exception with his stack trace.
public static void ErrorWithStackTrace(this ILog log, Exception exception) { log.Error(exception.Message,exception); }