Skip to content

Commit

Permalink
Addressed Foundatio Logging changes
Browse files Browse the repository at this point in the history
  • Loading branch information
niemyjski committed Mar 27, 2024
1 parent 579c38a commit 752d86e
Show file tree
Hide file tree
Showing 14 changed files with 15 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class CustomVisitorTests : ElasticsearchTestBase
{
public CustomVisitorTests(ITestOutputHelper output, ElasticsearchFixture fixture) : base(output, fixture)
{
Log.MinimumLevel = Microsoft.Extensions.Logging.LogLevel.Trace;
Log.DefaultMinimumLevel = Microsoft.Extensions.Logging.LogLevel.Trace;
}

[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class ElasticMappingResolverTests : ElasticsearchTestBase
{
public ElasticMappingResolverTests(ITestOutputHelper output, ElasticsearchFixture fixture) : base(output, fixture)
{
Log.MinimumLevel = Microsoft.Extensions.Logging.LogLevel.Trace;
Log.DefaultMinimumLevel = Microsoft.Extensions.Logging.LogLevel.Trace;
}

private ITypeMapping MapMyNestedType(TypeMappingDescriptor<MyNestedType> m)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class ElasticQueryParserTests : ElasticsearchTestBase
{
public ElasticQueryParserTests(ITestOutputHelper output, ElasticsearchFixture fixture) : base(output, fixture)
{
Log.MinimumLevel = Microsoft.Extensions.Logging.LogLevel.Trace;
Log.DefaultMinimumLevel = Microsoft.Extensions.Logging.LogLevel.Trace;
}

[Fact]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Foundatio.Parsers.ElasticQueries.Extensions;
Expand Down Expand Up @@ -73,7 +72,7 @@ public ElasticsearchFixture()
_client = new Lazy<IElasticClient>(() => GetClient(ConfigureConnectionSettings));
}

public TestLoggerFactory Log { get; set; }
public TestLogger Log { get; set; }
public IElasticClient Client => _client.Value;

protected IElasticClient GetClient(Action<ConnectionSettings> configure = null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class CleanupQueryVisitorTests : TestWithLoggingBase
{
public CleanupQueryVisitorTests(ITestOutputHelper output) : base(output)
{
Log.MinimumLevel = LogLevel.Trace;
Log.DefaultMinimumLevel = LogLevel.Trace;
}

[Theory]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class GenerateQueryVisitorTests : TestWithLoggingBase
{
public GenerateQueryVisitorTests(ITestOutputHelper output) : base(output)
{
Log.MinimumLevel = LogLevel.Trace;
Log.DefaultMinimumLevel = LogLevel.Trace;
}

[Theory]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class IncludeQueryVisitorTests : TestWithLoggingBase
{
public IncludeQueryVisitorTests(ITestOutputHelper output) : base(output)
{
Log.MinimumLevel = Microsoft.Extensions.Logging.LogLevel.Trace;
Log.DefaultMinimumLevel = Microsoft.Extensions.Logging.LogLevel.Trace;
}

[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class InvertQueryVisitorTests : TestWithLoggingBase
{
public InvertQueryVisitorTests(ITestOutputHelper output) : base(output)
{
Log.MinimumLevel = LogLevel.Trace;
Log.DefaultMinimumLevel = LogLevel.Trace;
}

[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class QueryParserTests : TestWithLoggingBase
{
public QueryParserTests(ITestOutputHelper output) : base(output)
{
Log.MinimumLevel = LogLevel.Trace;
Log.DefaultMinimumLevel = LogLevel.Trace;
}

[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class QueryParserValidationTests : TestWithLoggingBase
{
public QueryParserValidationTests(ITestOutputHelper output) : base(output)
{
Log.MinimumLevel = LogLevel.Trace;
Log.DefaultMinimumLevel = LogLevel.Trace;
}

[Theory]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class QueryValidatorTests : TestWithLoggingBase
{
public QueryValidatorTests(ITestOutputHelper output) : base(output)
{
Log.MinimumLevel = LogLevel.Trace;
Log.DefaultMinimumLevel = LogLevel.Trace;
}

[Fact]
Expand Down Expand Up @@ -190,7 +190,7 @@ public void CanParseWildcardQuery()

// allowed fields
// allowed operations
//
//
// as part of a chain of other visitors
// add tests to elastic that make use of a resolver
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class ReferencedFieldsTests : TestWithLoggingBase
{
public ReferencedFieldsTests(ITestOutputHelper output) : base(output)
{
Log.MinimumLevel = Microsoft.Extensions.Logging.LogLevel.Trace;
Log.DefaultMinimumLevel = Microsoft.Extensions.Logging.LogLevel.Trace;
}

[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class RemoveFieldsQueryVisitorTests : TestWithLoggingBase
{
public RemoveFieldsQueryVisitorTests(ITestOutputHelper output) : base(output)
{
Log.MinimumLevel = Microsoft.Extensions.Logging.LogLevel.Trace;
Log.DefaultMinimumLevel = Microsoft.Extensions.Logging.LogLevel.Trace;
}

[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public sealed class UnescapeTests : TestWithLoggingBase
{
public UnescapeTests(ITestOutputHelper output) : base(output)
{
Log.MinimumLevel = LogLevel.Trace;
Log.DefaultMinimumLevel = LogLevel.Trace;
}

[Theory]
Expand Down

0 comments on commit 752d86e

Please sign in to comment.