public void TraceEvent(MigrationEvent eventType, ValueTransitContext ctx, string message) { message = FormatMessage(message); ctx.AddTraceEntry(message, ConsoleColor.Yellow); _migrationEvents.Add(new MigrationEventTraceEntry(eventType, ctx, message)); SendTraceMessage(message, ConsoleColor.Yellow); }
public void TraceLine(string message, ValueTransitContext ctx = null, ConsoleColor color = ConsoleColor.White) { message = FormatMessage(message); ctx?.AddTraceEntry(message, color); if (ctx == null || ctx.Trace) { SendTraceMessage(message, color); } }