Exemple #1
0
        /// <summary>
        ///     Logs a generic <see cref="DropOperationBaseEvent"/> by delegating based on the type of <paramref name="e"/>.
        /// </summary>
        public static void Log(this ICloudBuildLogger logger, DropOperationBaseEvent e)
        {
            switch (e.Kind)
            {
            case EventKind.DropCreation:
                logger.Log((DropCreationEvent)e);
                return;

            case EventKind.DropFinalization:
                logger.Log((DropFinalizationEvent)e);
                return;

            default:
                Contract.Assert(false, "Unsupported " + nameof(DropOperationBaseEvent) + " " + e.Kind);
                return;
            }
        }
Exemple #2
0
 private void LogDropEventLocally(DropOperationBaseEvent e)
 {
     m_localLogger.Info("Logging {0}Event(dropUrl: {1}, succeeded: {2})", e.Kind, e.DropUrl, e.Succeeded);
 }
        private void LogDropEventLocally(DropOperationBaseEvent e)
        {
            var enabled = BuildXL.Tracing.ETWLogger.Log.IsEnabled(EventLevel.Verbose, Events.Keywords.CloudBuild) ? "ENABLED" : "DISABLED";

            m_localLogger.Info("Logging {0}Event(dropUrl: {1}, succeeded: {2}): {3}", e.Kind, e.DropUrl, e.Succeeded, enabled);
        }