Ejemplo n.º 1
0
        public static void StopLogging(int retCode, string errorString, DateTime startTime, Uri dfsDirectory)
        {
            if (loggingInitialized)
            {
                lock (syncRoot)
                {
                    if (loggingInitialized)
                    {
                        // Report stop time to Artemis
                        foreach (DrIReporter reporter in reporters)
                        {
                            reporter.ReportStop(unchecked ((uint)retCode), errorString, (ulong)startTime.ToFileTime());
                        }

                        if (dfsDirectory != null && errorString != null)
                        {
                            UploadToDfs(dfsDirectory, "error.txt", errorString);
                        }

                        // Shutdown Graph Manager's internal logging
                        DrLogging.ShutDown(unchecked ((uint)retCode));

                        loggingInitialized = false;
                    }
                }
            }
        }
Ejemplo n.º 2
0
        public static void StopLogging(int retCode)
        {
            if (loggingInitialized)
            {
                lock (syncRoot)
                {
                    if (loggingInitialized)
                    {
                        // Report stop time to Artemis
                        DrArtemisLegacyReporter.ReportStop(unchecked ((uint)retCode));

                        // Shutdown Graph Manager's internal logging
                        DrLogging.ShutDown(unchecked ((uint)retCode));

                        // Shutdown text-based tracing
                        DryadLogger.Stop();

                        loggingInitialized = false;
                    }
                }
            }
        }