Exemplo n.º 1
0
        internal void PrintStatistics()
        {
            if (!logger.IsInfo)
            {
                return;
            }

            var stats = Utils.EnumerableToString(workgroupDirectory.Values.OrderBy(wg => wg.Name), wg => string.Format("--{0}", wg.DumpStatus()), Environment.NewLine);

            if (stats.Length > 0)
            {
                logger.LogWithoutBulkingAndTruncating(Severity.Info, ErrorCode.SchedulerStatistics,
                                                      "OrleansTaskScheduler.PrintStatistics(): RunQueue={0}, WorkItems={1}, Directory:" + Environment.NewLine + "{2}",
                                                      RunQueue.Length, WorkItemGroupCount, stats);
            }
        }
 private void Log(ErrorCode logCode, string format, params object[] args)
 {
     logger.LogWithoutBulkingAndTruncating(Severity.Info, logCode, format, args);
 }