Files
spark/src/DataStreamSuite/SharedStreams/StreamFactories/StreamFactoryLogs.cs
T
John Colvin 253512cef8 refactor: Load IDataStreamFactory(s) with dependency injection
So we can create ViewStreams that depend on other services, config, etc.
Previously, the PrimitiveManager relied purely on static construction of
types through reflection.
2025-08-24 13:46:53 -04:00

12 lines
616 B
C#

namespace Bts.SharedStreams.StreamFactories;
using Microsoft.Extensions.Logging;
internal static partial class StreamFactoryLogs {
[LoggerMessage(EventId = 1, Level = LogLevel.Warning, Message = "Unable to create '{StreamType}' stream. Missing required parameter '{Parameter}'.")]
public static partial void LogMissingParam(this ILogger logger, string streamType, string parameter);
[LoggerMessage(EventId = 2, Level = LogLevel.Warning, Message = "Unable to create '{StreamType}' stream. {error}.")]
public static partial void LogInvalidParams(this ILogger logger, string streamType, string error);
}