Microsoft.Azure.WebJobs.Script.ScriptHostManager.LogErrors C# (CSharp) Method

LogErrors() private static method

private static LogErrors ( ScriptHost host ) : void
host ScriptHost
return void
        private static void LogErrors(ScriptHost host)
        {
            if (host.FunctionErrors.Count > 0)
            {
                StringBuilder builder = new StringBuilder();
                builder.AppendLine(string.Format(CultureInfo.InvariantCulture, "The following {0} functions are in error:", host.FunctionErrors.Count));
                foreach (var error in host.FunctionErrors)
                {
                    string functionErrors = string.Join(Environment.NewLine, error.Value);
                    builder.AppendLine(string.Format(CultureInfo.InvariantCulture, "{0}: {1}", error.Key, functionErrors));
                }
                host.TraceWriter.Error(builder.ToString());
            }
        }