Пример #1
0
        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);
        }
Пример #2
0
 public void Verbose(string line)
 {
     line = new StackFrame(1).GetMethod().Name + " | " + line;
     LogHandlerEvent.OnLog(MethodBase.GetCurrentMethod().Name, line);
 }
Пример #3
0
 public void Debug(string line)
 {
     //line = new StackFrame(1).GetMethod().Name + "\t|\t" + line;
     LogHandlerEvent.OnLog(MethodBase.GetCurrentMethod().Name, line);
 }
Пример #4
0
 // Method Implementation of interface
 public void Trace(string line)
 {
     LogHandlerEvent.OnLog(MethodBase.GetCurrentMethod().Name, line);
 }