diff --git a/docs/Reference/Generated/MigrationTools.xml b/docs/Reference/Generated/MigrationTools.xml index bb9d5cb61..316d83c58 100644 --- a/docs/Reference/Generated/MigrationTools.xml +++ b/docs/Reference/Generated/MigrationTools.xml @@ -258,22 +258,22 @@ - => @"main" + => @"topic/output-log-location" - => @"76c49c7b" + => @"718c3190" - => @"76c49c7bd212b11211a22924e6ad4e36339739b8" + => @"718c31903c2750f5170ac91a202c51682b4ebb13" - => @"2024-09-16T00:57:48+01:00" + => @"2024-09-19T09:18:52+01:00" @@ -283,12 +283,12 @@ - => @"v16.0.4-Preview.2" + => @"v16.0.4-Preview.3" - => @"v16.0.4-Preview.2" + => @"v16.0.4-Preview.3" @@ -323,12 +323,12 @@ - => @"Preview.2" + => @"Preview.3" - => @"-Preview.2" + => @"-Preview.3" diff --git a/src/MigrationTools.Host/Commands/CommandBase.cs b/src/MigrationTools.Host/Commands/CommandBase.cs index 13d8fc1e3..cf81c742e 100644 --- a/src/MigrationTools.Host/Commands/CommandBase.cs +++ b/src/MigrationTools.Host/Commands/CommandBase.cs @@ -105,6 +105,7 @@ public sealed override async Task ExecuteAsync(CommandContext context, TSet Lifetime.StopApplication(); CommandActivity?.Stop(); _logger.LogInformation("Command {CommandName} completed in {Elapsed}", this.GetType().Name, CommandActivity?.Duration); + _logger.LogInformation("Check the logs for errors: {LogPath}", LogLocationService.GetLogPath()); } } @@ -196,6 +197,7 @@ private void ApplicationStartup(TSettings settings) _logger.LogInformation("Running with settings: {@settings}", settings); _logger.LogInformation("OSVersion: {OSVersion}", Environment.OSVersion.ToString()); _logger.LogInformation("Version (Assembly): {Version}", _MigrationToolVersion.GetRunningVersion().versionString); + _logger.LogInformation("Logpath: {LogPath}", LogLocationService.GetLogPath()); } diff --git a/src/MigrationTools.Host/MigrationToolHost.cs b/src/MigrationTools.Host/MigrationToolHost.cs index e0c47fc83..4570090ce 100644 --- a/src/MigrationTools.Host/MigrationToolHost.cs +++ b/src/MigrationTools.Host/MigrationToolHost.cs @@ -53,7 +53,7 @@ public static IHostBuilder CreateDefaultBuilder(string[] args, Action lc .Filter.ByExcluding(Matching.FromSource("Microsoft.Hosting.Lifetime")) .Filter.ByExcluding(Matching.FromSource("Microsoft.Extensions.Hosting.Internal.Host")) @@ -141,20 +141,5 @@ public static IHostBuilder CreateDefaultBuilder(string[] args, Action