public LogFormatterTests() { var settings = ImmutableDirectLogSubmissionSettings.Create( host: Host, source: Source, intakeUrl: "http://localhost", apiKey: "some_value", minimumLevel: DirectSubmissionLogLevel.Debug, globalTags: new Dictionary <string, string> { { "Key1", "Value1" }, { "Key2", "Value2" } }, enabledLogShippingIntegrations: new List <string> { nameof(IntegrationId.ILogger) }, batchingOptions: new BatchingSinkOptions(batchSizeLimit: 100, queueLimit: 1000, TimeSpan.FromSeconds(2))); settings.IsEnabled.Should().BeTrue(); _formatter = new LogFormatter( settings, serviceName: Service, env: Env, version: Version); _sb = new StringBuilder(); _writer = LogFormatter.GetJsonWriter(_sb); }