Example #1
0
        public static void AddEvent(string description)
        {
            StackFrame frame = new StackFrame(1);

            string assemblyName = Assembly.GetCallingAssembly().GetName().Name;
            string typeName     = frame.GetMethod().DeclaringType.ToString();
            string methodName   = frame.GetMethod().Name;

            LogbookEntry logbookEntry = new LogbookEntry(assemblyName, typeName, methodName, description);
            Logbook      logbook      = new Logbook();

            logbook.AddEntry(logbookEntry);
        }
Example #2
0
 public LogSink(IMessageSink nextSink, LogOption logOption)
 {
     m_LogOption = logOption;
     m_NextSink  = nextSink;
     m_Logbook   = new Logbook();
 }