@@ -101,7 +101,7 @@ public static GameContext CreateGameContext(
101101 ExplicitLoad = explicitLoad ,
102102 LazyLoading = lazyLoading ,
103103#if DEBUG
104- LoggerFactory = new IntersectLoggerFactory ( ) ,
104+ LoggerFactory = new IntersectLoggerFactory ( nameof ( GameContext ) ) ,
105105#endif
106106 QueryTrackingBehavior = queryTrackingBehavior,
107107 ReadOnly = readOnly ,
@@ -129,7 +129,7 @@ public static PlayerContext CreatePlayerContext(
129129 ExplicitLoad = explicitLoad ,
130130 LazyLoading = lazyLoading ,
131131#if DEBUG
132- LoggerFactory = new IntersectLoggerFactory ( ) ,
132+ LoggerFactory = new IntersectLoggerFactory ( nameof ( PlayerContext ) ) ,
133133#endif
134134 QueryTrackingBehavior = queryTrackingBehavior,
135135 ReadOnly = readOnly ,
@@ -152,7 +152,7 @@ internal static LoggingContext CreateLoggingContext(
152152 ExplicitLoad = explicitLoad ,
153153 LazyLoading = lazyLoading ,
154154#if DEBUG
155- LoggerFactory = new IntersectLoggerFactory ( ) ,
155+ LoggerFactory = new IntersectLoggerFactory ( nameof ( LoggingContext ) ) ,
156156#endif
157157 QueryTrackingBehavior = queryTrackingBehavior,
158158 ReadOnly = readOnly ,
@@ -284,7 +284,7 @@ private static bool EnsureUpdated(IServerContext serverContext)
284284 DatabaseType = Options . Instance . GameDatabase . Type ,
285285 EnableDetailedErrors = true ,
286286 EnableSensitiveDataLogging = true ,
287- LoggerFactory = new IntersectLoggerFactory ( ) ,
287+ LoggerFactory = new IntersectLoggerFactory ( nameof ( GameContext ) ) ,
288288 } ) ;
289289
290290 Log . Verbose ( "Creating player context..." ) ;
@@ -297,7 +297,7 @@ private static bool EnsureUpdated(IServerContext serverContext)
297297 DatabaseType = Options . Instance . PlayerDatabase . Type ,
298298 EnableDetailedErrors = true ,
299299 EnableSensitiveDataLogging = true ,
300- LoggerFactory = new IntersectLoggerFactory ( ) ,
300+ LoggerFactory = new IntersectLoggerFactory ( nameof ( PlayerContext ) ) ,
301301 } ) ;
302302
303303 Log . Verbose ( "Creating logging context..." ) ;
@@ -310,7 +310,7 @@ private static bool EnsureUpdated(IServerContext serverContext)
310310 DatabaseType = Options . Instance . LoggingDatabase . Type ,
311311 EnableDetailedErrors = true ,
312312 EnableSensitiveDataLogging = true ,
313- LoggerFactory = new IntersectLoggerFactory ( ) ,
313+ LoggerFactory = new IntersectLoggerFactory ( nameof ( LoggingContext ) ) ,
314314 } ) ;
315315
316316 // We don't want anyone running the old migration tool accidentally
0 commit comments