예제 #1
0
 private static void testEnableDisable(ISuperLoggingConnection conn)
 {
     conn.disable();
     Console.WriteLine("Disabled: " + (!conn.isEnabled() ? "succeeded" : "failed"));
     conn.enable();
     Console.WriteLine("Enabled: " + (conn.isEnabled() ? "succeeded" : "failed"));
     return;
 }
 private static void testEnableDisable(ISuperLoggingConnection conn)
 {
     conn.disable();
     Console.WriteLine("Disabled: " + (!conn.isEnabled() ? "succeeded" : "failed"));
     conn.enable();
     Console.WriteLine("Enabled: " + (conn.isEnabled() ? "succeeded" : "failed"));
     return;
 }
        private static void testGetTable(ISuperLoggingConnection conn)
        {
            conn.enable();
            ISuperLogEntryList list = conn.getAllEntries();
            SuperLogTableColumnSet colSet = new SuperLogTableColumnSet();
            colSet[SuperLogTableColumn.LOGIN_DN] = true;
            colSet[SuperLogTableColumn.OPERATION] = true;
            colSet[SuperLogTableColumn.STRING] = true;
            colSet[SuperLogTableColumn.ERROR_CODE] = true;
            colSet[SuperLogTableColumn.AVG_TIME] = true;
            ISuperLogTable table = conn.aggregate(list, colSet);

            foreach (ISuperLogTableRow r in table)
            {
                Console.WriteLine(r.ToString());
            }
            return;
        }
예제 #4
0
        private static void testGetTable(ISuperLoggingConnection conn)
        {
            conn.enable();
            ISuperLogEntryList     list   = conn.getAllEntries();
            SuperLogTableColumnSet colSet = new SuperLogTableColumnSet();

            colSet[SuperLogTableColumn.LOGIN_DN]   = true;
            colSet[SuperLogTableColumn.OPERATION]  = true;
            colSet[SuperLogTableColumn.STRING]     = true;
            colSet[SuperLogTableColumn.ERROR_CODE] = true;
            colSet[SuperLogTableColumn.AVG_TIME]   = true;
            ISuperLogTable table = conn.aggregate(list, colSet);

            foreach (ISuperLogTableRow r in table)
            {
                Console.WriteLine(r.ToString());
            }
            return;
        }