mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
Update to D#+ 4.0.0-rc1
This commit is contained in:
parent
90b2fcfdd4
commit
634173e205
14 changed files with 73 additions and 87 deletions
|
|
@ -99,6 +99,10 @@ namespace PluralKit.Core
|
|||
// AutoActivate ensures logging is enabled as early as possible in the API startup flow
|
||||
// since we set the Log.Logger global >.>
|
||||
.AutoActivate();
|
||||
|
||||
builder.Register(c => new Microsoft.Extensions.Logging.LoggerFactory().AddSerilog(c.Resolve<ILogger>()))
|
||||
.As<Microsoft.Extensions.Logging.ILoggerFactory>()
|
||||
.SingleInstance();
|
||||
}
|
||||
|
||||
private ILogger InitLogger(CoreConfig config)
|
||||
|
|
@ -111,9 +115,10 @@ namespace PluralKit.Core
|
|||
.ConfigureForNodaTime(DateTimeZoneProviders.Tzdb)
|
||||
.Enrich.WithProperty("Component", _component)
|
||||
.MinimumLevel.Is(config.ConsoleLogLevel)
|
||||
|
||||
// Don't want App.Metrics spam
|
||||
|
||||
// Don't want App.Metrics/D#+ spam
|
||||
.MinimumLevel.Override("App.Metrics", LogEventLevel.Information)
|
||||
.MinimumLevel.Override("DSharpPlus", LogEventLevel.Debug)
|
||||
|
||||
// Actual formatting for these is handled in ScalarFormatting
|
||||
.Destructure.AsScalar<SystemId>()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue