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