Example #1
0
        public void JobStarted(string jobName, string scriptExtension, string jobType, string siteMode)
        {
            var o = new KuduSiteExtensionLogEvent("JobStarted");
            o["JobName"] = jobName;
            o["ScriptExtension"] = scriptExtension;
            o["JobType"] = jobType;
            o["SiteMode"] = siteMode;

            _siteExtensionLogManager.Log(o);
        }
Example #2
0
        public void JobStarted(string jobName, string scriptExtension, string jobType, string siteMode)
        {
            var o = new KuduSiteExtensionLogEvent("JobStarted");

            o["WebJobsName"]     = jobName;
            o["ScriptExtension"] = scriptExtension;
            o["WebJobsType"]     = jobType;
            o["SiteMode"]        = siteMode;

            _siteExtensionLogManager.Log(o);
        }
Example #3
0
        public void ProjectDeployed(string projectType, string result, string error, long deploymentDurationInMilliseconds, string siteMode)
        {
            var o = new KuduSiteExtensionLogEvent("SiteDeployed");
            o["SiteType"] = projectType;
            o["ScmType"] = _settings.GetValue(SettingsKeys.ScmType);
            o["Result"] = result;
            o["Error"] = error;
            o["Latency"] = deploymentDurationInMilliseconds;
            o["SiteMode"] = siteMode;

            _siteExtensionLogManager.Log(o);
        }
Example #4
0
        public void ProjectDeployed(string projectType, string result, string error, long deploymentDurationInMilliseconds, string siteMode)
        {
            var o = new KuduSiteExtensionLogEvent("SiteDeployed");

            o["SiteType"] = projectType;
            o["ScmType"]  = _settings.GetValue(SettingsKeys.ScmType);
            o["Result"]   = result;
            o["Error"]    = error;
            o["Latency"]  = deploymentDurationInMilliseconds;
            o["SiteMode"] = siteMode;

            _siteExtensionLogManager.Log(o);
        }
Example #5
0
        public void UnexpectedException(Exception exception)
        {
            var strb = new StringBuilder();
            strb.AppendLine(exception.ToString());

            var aggregate = exception as AggregateException;
            if (aggregate != null)
            {
                foreach (var inner in aggregate.Flatten().InnerExceptions)
                {
                    strb.AppendLine(inner.ToString());
                }
            }

            var o = new KuduSiteExtensionLogEvent("UnexpectedException");
            o["Error"] = strb.ToString();

            _siteExtensionLogManager.Log(o);
        }
Example #6
0
        public void UnexpectedException(Exception exception)
        {
            var strb = new StringBuilder();

            strb.AppendLine(exception.ToString());

            var aggregate = exception as AggregateException;

            if (aggregate != null)
            {
                foreach (var inner in aggregate.Flatten().InnerExceptions)
                {
                    strb.AppendLine(inner.ToString());
                }
            }

            var o = new KuduSiteExtensionLogEvent("UnexpectedException");

            o["Error"] = strb.ToString();

            _siteExtensionLogManager.Log(o);
        }