Files
spark/src/DataStreamSuite/DataStreamCore/DynamicLoading/StreamFactoryLogs.cs
T
John Colvin ea0a1fbcd3 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-11-19 13:53:18 -05:00

12 lines
599 B
C#

namespace Bts.DataStreamCore;
using Microsoft.Extensions.Logging;
public 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);
}