Logging\ExtendedLoggerFactoryTests.cs (36)
229Assert.Equal(activity1String, loggerProvider.LogText[1]);
230Assert.Equal(activity2String, loggerProvider.LogText[4]);
231Assert.Equal(7, loggerProvider.LogText.Count); // Ensure that Baggage and Tags aren't added.
265foreach (string s in loggerProvider.LogText)
270Assert.Equal("Message1", loggerProvider.LogText[0]);
271Assert.Equal("testKey3:testValue, testKey2:, testKey1:", loggerProvider.LogText[2]);
299Assert.Equal("Message1", loggerProvider.LogText[0]);
300Assert.Equal("testKey1:, testKey2:, testKey3:testValue, testKey4:DummyToString", loggerProvider.LogText[2]);
325Assert.Equal("Message1", loggerProvider.LogText[0]);
326Assert.Equal(traceIdActivityLogString, loggerProvider.LogText[1]);
327Assert.Equal("testTagKey1:testTagValue", loggerProvider.LogText[2]);
328Assert.Equal("testBaggageKey1:testBaggageValue", loggerProvider.LogText[3]);
383Assert.Equal("Message1", loggerProvider.LogText[0]);
384Assert.Equal("MyTagKey1:1", loggerProvider.LogText[2]);
385Assert.Equal("MyBaggageKey1:1", loggerProvider.LogText[3]);
387Assert.Equal("Message2", loggerProvider.LogText[4]);
388Assert.Equal("MyTagKey1:1, MyTagKey2:2", loggerProvider.LogText[6]);
389Assert.Equal("MyBaggageKey2:2, MyBaggageKey1:1", loggerProvider.LogText[7]);
390Assert.Equal("Scope1", loggerProvider.LogText[8]);
392Assert.Equal("Message3", loggerProvider.LogText[9]);
393Assert.Equal("MyTagKey1:1, MyTagKey2:2, MyTagKey3:4", loggerProvider.LogText[11]);
394Assert.Equal("MyBaggageKey3:4, MyBaggageKey2:2, MyBaggageKey1:1", loggerProvider.LogText[12]);
395Assert.Equal("Scope1", loggerProvider.LogText[13]);
396Assert.Equal("Scope2", loggerProvider.LogText[14]);
397Assert.Equal("Scope3", loggerProvider.LogText[15]);
399Assert.Equal("Message4", loggerProvider.LogText[16]);
400Assert.Equal("MyTagKey1:1, MyTagKey2:2, MyTagKey3:4", loggerProvider.LogText[18]);
401Assert.Equal("MyBaggageKey3:4, MyBaggageKey2:2, MyBaggageKey1:1", loggerProvider.LogText[19]);
402Assert.Equal("Scope1", loggerProvider.LogText[20]);
425Assert.Equal("Message1", loggerProvider.LogText[0]);
426Assert.Equal(traceIdActivityLogString, loggerProvider.LogText[1]);
427Assert.Equal(2, loggerProvider.LogText.Count); // Ensure that the additional scopes for tags and baggage aren't added.
449Assert.Equal(loggerProvider.LogText,
507Assert.Equal(loggerProvider.LogText,
594LogText.Add(formatter(state, exception));
599ScopeProvider!.ForEachScope((scope, builder) => builder.Add(scope!.ToString()!), LogText);