File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -258,7 +258,7 @@ protected internal override void OnConfigurationAssigned(LogFactory? logFactory)
258258 {
259259 if ( fileWatcher != null && ! fileWatcher . IsDisposed )
260260 {
261- InternalLogger . Info ( "AutoReload Config File Monitor stopping, since no active configuration" ) ;
261+ InternalLogger . Debug ( "AutoReload Config File Monitor stopping, since no active configuration" ) ;
262262 fileWatcher . Dispose ( ) ;
263263 }
264264 }
@@ -267,7 +267,7 @@ protected internal override void OnConfigurationAssigned(LogFactory? logFactory)
267267 InternalLogger . Debug ( "AutoReload Config File Monitor refreshing after configuration changed" ) ;
268268 if ( fileWatcher is null || fileWatcher . IsDisposed )
269269 {
270- InternalLogger . Info ( "AutoReload Config File Monitor starting" ) ;
270+ InternalLogger . Debug ( "AutoReload Config File Monitor starting" ) ;
271271 fileWatcher = new AutoReloadConfigFileWatcher ( configFactory ) ;
272272 lock ( _watchers )
273273 {
@@ -600,7 +600,10 @@ private static string GetFileLookupKey(string fileName)
600600 /// <inheritdoc/>
601601 public override string ToString ( )
602602 {
603- return $ "{ base . ToString ( ) } , FilePath={ _originalFileName } ";
603+ if ( AutoReload )
604+ return $ "{ base . ToString ( ) } AutoReload=true FilePath={ _originalFileName } ";
605+ else
606+ return $ "{ base . ToString ( ) } FilePath={ _originalFileName } ";
604607 }
605608
606609 private sealed class AutoReloadConfigFileWatcher : IDisposable
Original file line number Diff line number Diff line change @@ -282,7 +282,7 @@ private void ActivateLoggingConfiguration(LoggingConfiguration config)
282282 _config . OnConfigurationAssigned ( this ) ;
283283 _config . Dump ( ) ;
284284 ReconfigExistingLoggers ( ) ;
285- InternalLogger . Info ( "Configuration initialized." ) ;
285+ InternalLogger . Info ( "Configuration initialized: {0}" , config ) ;
286286 }
287287
288288 private void ServiceRepository_TypeRegistered ( object sender , ServiceRepositoryUpdateEventArgs e )
You can’t perform that action at this time.
0 commit comments