private static Logger.Category getCategoryForInterface(string EVENT_LOG_SOURCE)
        {
            Logger.Category category = Logger.Category.Logging; // 27

            switch (EVENT_LOG_SOURCE)
            {
            default:
                break;
            }
            return(category);
        }
 public static void TraceEventLogMsg(string src, string msg, params object[] args)
 {
     try
     {
         Logger.Category category = getCategoryForInterface(src);
         AIT.Portrait.Logging.Logger.Trace(category, null, msg, args);
     }
     catch (Exception)
     {
     }
 }
Example #3
0
 public Profile(Profile profile)
 {
     Logger.V(">> Profile.Profile");
     m_defWorkMode      = profile.m_defWorkMode;
     m_isStartAuto      = profile.m_isStartAuto;
     m_isStartMinimized = profile.m_isStartMinimized;
     m_isLogToFile      = profile.m_isLogToFile;
     m_logLevel         = profile.m_logLevel;
     m_listProxyGroups  = new List <ProxyGroup>(profile.m_listProxyGroups);
     m_szProfilePath    = profile.m_szProfilePath;
     s_bLoadFailed      = false;
     Logger.V("<< Profile.Profile");
 }
Example #4
0
 // Contructor Method
 public Profile()
 {
     Logger.V(">> Profile.Profile");
     m_defWorkMode      = WorkMode.Auto;
     m_isStartAuto      = true;
     m_isStartMinimized = true;
     m_isLogToFile      = true;
     m_logLevel         = Logger.Category.Information;
     m_listProxyGroups  = new List <ProxyGroup>();
     m_szProfilePath    = String.Empty;
     s_bLoadFailed      = false;
     Logger.V("<< Profile.Profile");
 }
 public static void TraceInterface(string src, string msg, object obj)
 {
     try
     {
         StringBuilder sb = new StringBuilder();
         sb.Append(msg).Append(SerializeObject(obj).OuterXml);
         Logger.Category category = getCategoryForInterface(src);
         AIT.Portrait.Logging.Logger.Trace(category, null, sb.ToString());
     }
     catch (Exception)
     {
     }
 }
Example #6
0
 public Profile(Profile profile)
 {
     Logger.V(">> Profile.Profile");
     m_defWorkMode = profile.m_defWorkMode;
     m_isStartAuto = profile.m_isStartAuto;
     m_isStartMinimized = profile.m_isStartMinimized;
     m_isLogToFile = profile.m_isLogToFile;
     m_logLevel = profile.m_logLevel;
     m_listProxyGroups = new List<ProxyGroup>(profile.m_listProxyGroups);
     m_szProfilePath = profile.m_szProfilePath;
     s_bLoadFailed = false;
     Logger.V("<< Profile.Profile");
 }
Example #7
0
 // Contructor Method
 public Profile()
 {
     Logger.V(">> Profile.Profile");
     m_defWorkMode = WorkMode.Auto;
     m_isStartAuto = true;
     m_isStartMinimized = true;
     m_isLogToFile = true;
     m_logLevel = Logger.Category.Information;
     m_listProxyGroups = new List<ProxyGroup>();
     m_szProfilePath = String.Empty;
     s_bLoadFailed = false;
     Logger.V("<< Profile.Profile");
 }