@@ -16,7 +16,7 @@ public class EntityResourceService<TResource> : EntityResourceService<TResource,
1616 public EntityResourceService (
1717 IJsonApiContext jsonApiContext ,
1818 IEntityRepository < TResource > entityRepository ,
19- ILoggerFactory loggerFactory ) :
19+ ILoggerFactory loggerFactory = null ) :
2020 base ( jsonApiContext , entityRepository , loggerFactory )
2121 { }
2222 }
@@ -28,7 +28,7 @@ public class EntityResourceService<TResource, TId> : EntityResourceService<TReso
2828 public EntityResourceService (
2929 IJsonApiContext jsonApiContext ,
3030 IEntityRepository < TResource , TId > entityRepository ,
31- ILoggerFactory loggerFactory ) :
31+ ILoggerFactory loggerFactory = null ) :
3232 base ( jsonApiContext , entityRepository , loggerFactory )
3333 { }
3434 }
@@ -46,7 +46,7 @@ public class EntityResourceService<TResource, TEntity, TId> :
4646 public EntityResourceService (
4747 IJsonApiContext jsonApiContext ,
4848 IEntityRepository < TEntity , TId > entityRepository ,
49- ILoggerFactory loggerFactory )
49+ ILoggerFactory loggerFactory = null )
5050 {
5151 // no mapper provided, TResource & TEntity must be the same type
5252 if ( typeof ( TResource ) != typeof ( TEntity ) )
@@ -56,7 +56,7 @@ public EntityResourceService(
5656
5757 _jsonApiContext = jsonApiContext ;
5858 _entities = entityRepository ;
59- _logger = loggerFactory . CreateLogger < EntityResourceService < TResource , TEntity , TId > > ( ) ;
59+ _logger = loggerFactory ? . CreateLogger < EntityResourceService < TResource , TEntity , TId > > ( ) ;
6060 }
6161
6262 public EntityResourceService (
0 commit comments