Reduce flush to disk interval further
This commit is contained in:
parent
ae74dce2ce
commit
62207a9255
@ -105,12 +105,12 @@ namespace PluralKit.Core
|
|||||||
{
|
{
|
||||||
// Both the same output, except one is raw compact JSON and one is plain text.
|
// Both the same output, except one is raw compact JSON and one is plain text.
|
||||||
// Output simultaneously. May remove the JSON formatter later, keeping it just in cast.
|
// Output simultaneously. May remove the JSON formatter later, keeping it just in cast.
|
||||||
// Flush interval is 250ms (down from 10s) to make "tail -f" easier. May be too low?
|
// Flush interval is 50ms (down from 10s) to make "tail -f" easier. May be too low?
|
||||||
a.File(
|
a.File(
|
||||||
(config.LogDir ?? "logs") + $"/pluralkit.{_component}.log",
|
(config.LogDir ?? "logs") + $"/pluralkit.{_component}.log",
|
||||||
outputTemplate: outputTemplate,
|
outputTemplate: outputTemplate,
|
||||||
rollingInterval: RollingInterval.Day,
|
rollingInterval: RollingInterval.Day,
|
||||||
flushToDiskInterval: TimeSpan.FromMilliseconds(250),
|
flushToDiskInterval: TimeSpan.FromMilliseconds(50),
|
||||||
restrictedToMinimumLevel: LogEventLevel.Information,
|
restrictedToMinimumLevel: LogEventLevel.Information,
|
||||||
formatProvider: new UTCTimestampFormatProvider(),
|
formatProvider: new UTCTimestampFormatProvider(),
|
||||||
buffered: true);
|
buffered: true);
|
||||||
@ -119,7 +119,7 @@ namespace PluralKit.Core
|
|||||||
new RenderedCompactJsonFormatter(),
|
new RenderedCompactJsonFormatter(),
|
||||||
(config.LogDir ?? "logs") + $"/pluralkit.{_component}.json",
|
(config.LogDir ?? "logs") + $"/pluralkit.{_component}.json",
|
||||||
rollingInterval: RollingInterval.Day,
|
rollingInterval: RollingInterval.Day,
|
||||||
flushToDiskInterval: TimeSpan.FromMilliseconds(250),
|
flushToDiskInterval: TimeSpan.FromMilliseconds(50),
|
||||||
restrictedToMinimumLevel: LogEventLevel.Information,
|
restrictedToMinimumLevel: LogEventLevel.Information,
|
||||||
buffered: true);
|
buffered: true);
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user