maliming
10 months ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
5 changed files with
0 additions and
25 deletions
-
src/EventHub.Admin.HttpApi.Host/Program.cs
-
src/EventHub.BackgroundServices/Program.cs
-
src/EventHub.HttpApi.Host/Program.cs
-
src/EventHub.IdentityServer/Program.cs
-
src/EventHub.Web/Program.cs
|
|
|
@ -14,12 +14,7 @@ namespace EventHub.Admin |
|
|
|
public async static Task<int> Main(string[] args) |
|
|
|
{ |
|
|
|
Log.Logger = new LoggerConfiguration() |
|
|
|
#if DEBUG
|
|
|
|
.MinimumLevel.Debug() |
|
|
|
#else
|
|
|
|
.MinimumLevel.Information() |
|
|
|
#endif
|
|
|
|
.MinimumLevel.Override("Microsoft", LogEventLevel.Information) |
|
|
|
.MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning) |
|
|
|
.Enrich.FromLogContext() |
|
|
|
.WriteTo.Async(c => c.File("Logs/logs.txt")) |
|
|
|
|
|
|
|
@ -12,12 +12,7 @@ namespace EventHub |
|
|
|
public static async Task<int> Main(string[] args) |
|
|
|
{ |
|
|
|
Log.Logger = new LoggerConfiguration() |
|
|
|
#if DEBUG
|
|
|
|
.MinimumLevel.Debug() |
|
|
|
#else
|
|
|
|
.MinimumLevel.Information() |
|
|
|
#endif
|
|
|
|
.MinimumLevel.Override("Microsoft", LogEventLevel.Information) |
|
|
|
.Enrich.FromLogContext() |
|
|
|
.WriteTo.Async(c => c.File("Logs/logs.txt")) |
|
|
|
.WriteTo.Async(c => c.Console()) |
|
|
|
|
|
|
|
@ -15,12 +15,7 @@ namespace EventHub |
|
|
|
public async static Task<int> Main(string[] args) |
|
|
|
{ |
|
|
|
Log.Logger = new LoggerConfiguration() |
|
|
|
#if DEBUG
|
|
|
|
.MinimumLevel.Debug() |
|
|
|
#else
|
|
|
|
.MinimumLevel.Information() |
|
|
|
#endif
|
|
|
|
.MinimumLevel.Override("Microsoft", LogEventLevel.Information) |
|
|
|
.MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning) |
|
|
|
.Enrich.FromLogContext() |
|
|
|
.WriteTo.Async(c => c.File("Logs/logs.txt")) |
|
|
|
|
|
|
|
@ -14,12 +14,7 @@ namespace EventHub |
|
|
|
public async static Task<int> Main(string[] args) |
|
|
|
{ |
|
|
|
Log.Logger = new LoggerConfiguration() |
|
|
|
#if DEBUG
|
|
|
|
.MinimumLevel.Debug() |
|
|
|
#else
|
|
|
|
.MinimumLevel.Information() |
|
|
|
#endif
|
|
|
|
.MinimumLevel.Override("Microsoft", LogEventLevel.Information) |
|
|
|
.MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning) |
|
|
|
.Enrich.FromLogContext() |
|
|
|
.WriteTo.Async(c => c.File("Logs/logs.txt")) |
|
|
|
|
|
|
|
@ -14,12 +14,7 @@ namespace EventHub.Web |
|
|
|
public async static Task<int> Main(string[] args) |
|
|
|
{ |
|
|
|
Log.Logger = new LoggerConfiguration() |
|
|
|
#if DEBUG
|
|
|
|
.MinimumLevel.Debug() |
|
|
|
#else
|
|
|
|
.MinimumLevel.Information() |
|
|
|
#endif
|
|
|
|
.MinimumLevel.Override("Microsoft", LogEventLevel.Information) |
|
|
|
.MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning) |
|
|
|
.Enrich.FromLogContext() |
|
|
|
.WriteTo.Async(c => c.File("Logs/logs.txt")) |
|
|
|
|