So we can create ViewStreams that depend on other services, config, etc. Previously, the PrimitiveManager relied purely on static construction of types through reflection.
12 lines
599 B
C#
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);
|
|
}
|