diff --git a/docs/en/cli/index.md b/docs/en/cli/index.md index 60d4e3ff0b..e57566a428 100644 --- a/docs/en/cli/index.md +++ b/docs/en/cli/index.md @@ -40,6 +40,7 @@ Here, is the list of all available commands before explaining their details: * **`new-package`**: Generates a new package based on the given template. * **`update`**: Automatically updates all ABP related NuGet and NPM packages in a solution. * **`clean`**: Deletes all `BIN` and `OBJ` folders in the current folder. +* **`clean-logs`**: Delete all `*logs.txt` files in the current folder and its subfolders. * **`add-package`**: Adds an ABP package to a project. * **`add-package-ref`**: Adds package to given project. * **`install-module`**: Adds a [multi-package application module](../modules/index.md) to a given module. @@ -353,6 +354,15 @@ Usage: ````bash abp clean ```` +### clean-logs + +Delete all `*logs.txt` files in the current folder and its subfolders. + +Usage: + +````bash +abp clean-logs +```` ### add-package diff --git a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/CleanLogsCommand.cs b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/CleanLogsCommand.cs index f43ac96f9e..91d1b07d1f 100644 --- a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/CleanLogsCommand.cs +++ b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/CleanLogsCommand.cs @@ -33,8 +33,6 @@ public class CleanLogsCommand : IConsoleCommand, ITransientDependency File.Delete(file); } } - Logger.LogInformation($"'Logs' files removed successfully!"); - Logger.LogInformation("Logs cleaned successfully!"); return Task.CompletedTask; } @@ -54,6 +52,6 @@ public class CleanLogsCommand : IConsoleCommand, ITransientDependency public static string GetShortDescription() { - return "Delete all *logs.txt files in current folder."; + return "Delete all *logs.txt files in the current folder and its subfolders."; } } \ No newline at end of file