2424using Hazelcast . Serialization . Compact ;
2525using Hazelcast . Testing ;
2626using Hazelcast . Testing . Conditions ;
27+ using Microsoft . Extensions . Logging ;
2728using NUnit . Framework ;
2829
2930namespace Hazelcast . Tests . Serialization . Compact
@@ -66,7 +67,11 @@ private HazelcastOptions GetHazelcastOptions()
6667 {
6768 options . ClusterName = RcCluster ? . Id ?? options . ClusterName ;
6869 options . Networking . Addresses . Add ( "127.0.0.1:5701" ) ;
70+
71+ options . LoggerFactory . Creator = ( ) =>
72+ Microsoft . Extensions . Logging . LoggerFactory . Create ( ( conf ) => conf . AddConsole ( ) ) ;
6973 } )
74+ . WithDefault ( "Logging:LogLevel:Hazelcast" , "Debug" )
7075 . Build ( ) ;
7176
7277 // the constant values, ie values that the user specifies
@@ -94,6 +99,7 @@ public async Task AddNothing()
9499 [ Test ]
95100 public async Task AddSerializer ( )
96101 {
102+ HConsole . Configure ( c=> c . ConfigureDefaults ( this ) ) ;
97103 var options = GetHazelcastOptions ( ) ;
98104
99105 // add a serializer - which provides the type name - the schema will derive from the serializer
@@ -107,6 +113,7 @@ public async Task AddSerializer()
107113 [ Test ]
108114 public async Task AddSerializerAndSchema ( )
109115 {
116+ HConsole . Configure ( c=> c . ConfigureDefaults ( this ) ) ;
110117 var options = GetHazelcastOptions ( ) ;
111118
112119 var schema = SchemaBuilder
@@ -128,6 +135,7 @@ public async Task AddSerializerAndSchema()
128135 [ Test ]
129136 public async Task SetTypeName ( )
130137 {
138+ HConsole . Configure ( c=> c . ConfigureDefaults ( this ) ) ;
131139 var options = GetHazelcastOptions ( ) ;
132140
133141 // set the type name - will use the reflection serializer, but with that type name
@@ -142,6 +150,7 @@ public async Task SetTypeName()
142150 [ Test ]
143151 public async Task SetSchema ( )
144152 {
153+ HConsole . Configure ( c=> c . ConfigureDefaults ( this ) ) ;
145154 var options = GetHazelcastOptions ( ) ;
146155
147156 var schema = SchemaBuilder
@@ -280,6 +289,7 @@ private static async Task AssertCompact<T>(
280289 [ TestCase ( 2 ) ]
281290 public async Task TypeHierarchySupport ( int serializersMode )
282291 {
292+ HConsole . Configure ( c=> c . ConfigureDefaults ( this ) ) ;
283293 var options = GetHazelcastOptions ( ) ;
284294
285295 // ThingWrapper has a property which is an IThing
0 commit comments