public void Debug(string line, StackInfo si) { switch (si) { case StackInfo.CurrentMethod: line = new StackFrame(1).GetMethod().Name + " | " + line; break; case StackInfo.Full: //StackTrace st = new StackTrace(); //StackFrame[] sfs= st.GetFrames(); line = Environment.StackTrace + " | " + line; break; case StackInfo.None: break; } LogHandlerEvent.OnLog(MethodBase.GetCurrentMethod().Name, line); }
public void Verbose(string line) { line = new StackFrame(1).GetMethod().Name + " | " + line; LogHandlerEvent.OnLog(MethodBase.GetCurrentMethod().Name, line); }
public void Debug(string line) { //line = new StackFrame(1).GetMethod().Name + "\t|\t" + line; LogHandlerEvent.OnLog(MethodBase.GetCurrentMethod().Name, line); }
// Method Implementation of interface public void Trace(string line) { LogHandlerEvent.OnLog(MethodBase.GetCurrentMethod().Name, line); }