예제 #1
0
        public void BeginScopeConfiguredCorrectly()
        {
            using (_frameworkLogger.BeginScope(new Dictionary <string, object> {
                { "A", 1 }
            }))
                _frameworkLogger.Log(Microsoft.Extensions.Logging.LogLevel.Information, 0, new object(), null, null);

            Assert.Equal(1, _lastEvent.Properties["A"].LiteralValue());
        }
 public IDisposable BeginScope <TState>(TState state)
 {
     return(adaptee.BeginScope(state));
 }