Пример #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);
        }
Пример #2
0
 void LogCall(LogbookEntry logbookEntry)
 {
     m_Logbook.AddEntry(logbookEntry);
 }