Roc
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
3 additions and
2 deletions
-
framework/src/Volo.Abp.Cli/Volo.Abp.Cli.csproj
-
framework/src/Volo.Abp.Cli/Volo/Abp/Cli/Program.cs
|
|
|
@ -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.0.2-dev-00890" /> |
|
|
|
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="6.0.1" /> |
|
|
|
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="$(MicrosoftPackageVersion)" /> |
|
|
|
</ItemGroup> |
|
|
|
|
|
|
|
@ -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; |
|
|
|
|
|
|
|
@ -26,7 +27,7 @@ public class Program |
|
|
|
#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>( |
|
|
|
|