public LogMessage SetContext(CallingMethodDetail detail) { if (detail == CallingMethodDetail.FullStack) { this.Set("context", StackReporter.GetCallingMethod(true, StackReporter.FullFormatStackFrame, 1)); } else if (detail == CallingMethodDetail.LastMethod) { this.Set("context", StackReporter.GetCallingMethod(false, StackReporter.FullFormatStackFrame, 1)); } return(this); }
public Logger(string nameOfLogger) { logger = log4net.LogManager.GetLogger(nameOfLogger); AddCallingMethod = CallingMethodDetail.None; }