using Serilog.Context; namespace Predictalytics.Infrastructure.Logging; /// /// Helper to push platform context into Serilog LogContext for platform-filtered file sinks. /// Usage: using (PlatformLogContext.Push("Polymarket")) { ... } /// public static class PlatformLogContext { /// /// Pushes the platform name to the Serilog LogContext. /// Dispose the returned IDisposable to remove it. /// public static IDisposable Push(string platformName) { return LogContext.PushProperty("Platform", platformName); } }