Skip to content

Commit

Permalink
Merge pull request #12779 from roc916/abp-cli-light-mode
Browse files Browse the repository at this point in the history
Support 'Light Mode' for ABP CLI
  • Loading branch information
realLiangshiwei authored Sep 29, 2022
2 parents eba7b4d + d1637c1 commit 5fbb64f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion framework/src/Volo.Abp.Cli/Volo.Abp.Cli.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<PackageReference Include="NETStandard.Library" Version="2.0.3" />
<PackageReference Include="Serilog.Extensions.Logging" Version="3.1.0" />
<PackageReference Include="Serilog.Sinks.File" Version="5.0.0" />
<PackageReference Include="Serilog.Sinks.Console" Version="4.0.1" />
<PackageReference Include="Serilog.Sinks.Console" Version="4.1.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="6.0.1" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="$(MicrosoftPackageVersion)" />
</ItemGroup>
Expand Down
3 changes: 2 additions & 1 deletion framework/src/Volo.Abp.Cli/Volo/Abp/Cli/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using Microsoft.Extensions.DependencyInjection;
using Serilog;
using Serilog.Events;
using Serilog.Sinks.SystemConsole.Themes;
using System.IO;
using System.Threading.Tasks;

Expand All @@ -26,7 +27,7 @@ private static async Task Main(string[] args)
#endif
.Enrich.FromLogContext()
.WriteTo.File(Path.Combine(CliPaths.Log, "abp-cli-logs.txt"))
.WriteTo.Console()
.WriteTo.Console(theme: AnsiConsoleTheme.Sixteen)
.CreateLogger();

using (var application = AbpApplicationFactory.Create<AbpCliModule>(
Expand Down

0 comments on commit 5fbb64f

Please sign in to comment.