private LogEntry BuildEntry(string message, TraceEventType severity) { string namespaceName; string className; string methodSignature; WeblogEntry.GetMethodDetails(_frameToSkip, out namespaceName, out className, out methodSignature); return(CreateEntry(message, severity, namespaceName, className, methodSignature)); }
public Exception HandleException(Exception exception, Guid handlingInstanceId) { Exception e = exception; while (e != null) { string namespaceName; string className; string methodSignature; WeblogEntry.GetMethodDetails(11, out namespaceName, out className, out methodSignature); LogEntry log = CreateEntry(e, namespaceName, className, methodSignature); _logger.Write(log); e = e.InnerException; } return(exception); }