public static void Write(SAFLOGGER.LOGGEREventID loggerEventID, string appBASEid, string[] appMSGtext) { try { int _SAFDEPLOYTRACELevel; if (-9 == (_SAFDEPLOYTRACELevel = int.Parse("0" + ConfigurationManager.AppSettings.Get("SAFTRACE_LEVEL")))) { Debug.Write(SAFLOGGER._formatLogMSG(loggerEventID, appBASEid, appMSGtext)); if (loggerEventID != (SAFLOGGER.LOGGEREventID)(-1)) { return; } } if (loggerEventID <= (SAFLOGGER.LOGGEREventID)_SAFDEPLOYTRACELevel) { SAFLOGGER.writeToFile(appBASEid, SAFLOGGER._formatLogMSG(loggerEventID, appBASEid, appMSGtext)); } } catch (Exception ex) { SAFLOGGER.writeToEventLog(EventLogEntryType.Error, SAFLOGGER._formatLogMSG(SAFLOGGER.LOGGEREventID.EXCEPTION, "http://sfexpandsecure.logger.softfinanca.com/", new string[] { ex.ToString(), "unable to dump message log!!" }) + Environment.NewLine + SAFLOGGER._formatLogMSG(loggerEventID, appBASEid, appMSGtext)); } }
public static void dump(SAFLOGGER.LOGGEREventID loggerEventID, string appBASEid, string[] appMSGtext) { SAFLOGGER.writeToFile(appBASEid, SAFLOGGER._formatLogMSG(loggerEventID, appBASEid, appMSGtext)); }