serilog-build on v105
ThomasArdal on master
Set correlationId from properti… 3.7 in prerelease (compare)
serilog-build on v104
ThomasArdal on master
Replaced ASP.NET Core 2.2 sampl… Replaced ASP.NET Core 2.2 sampl… Comments on all settings in con… and 3 more (compare)
nblumhardt on dev
Fix the naming of the configura… Update projects/build Semicolon, not comma and 1 more (compare)
serilog-build on v2.4.0
nblumhardt on dev
Added notes about Log Scope usa… Tweaked some wording in the Log… Merge pull request #182 from Ra… (compare)
nblumhardt on dev
Suppress ExecutionContext flowi… Removed DisableImplicitFramewor… Merge pull request #53 from Cod… (compare)
nblumhardt on dev
Including the RollingFileSink i… Merge pull request #196 from pv… (compare)
nblumhardt on renderings-property
nblumhardt on dev
Test templates by comparing out… Merge pull request #20 from ser… (compare)
nblumhardt on renderings-property
Test templates by comparing out… (compare)
nblumhardt on dev
Update publishing key; fixes #11 (compare)
serilog-build on v103
ThomasArdal on master
New nuget api key (compare)
nblumhardt on dev
Replace PackageLicenseUrl with … Merge pull request #43 from Num… (compare)
nblumhardt on dev
Only reference System.Diagnosti… Merge pull request #10 from Num… (compare)
ThomasArdal on master
Updated nuget api key (compare)
ThomasArdal on master
Added icon (compare)
ThomasArdal on master
Fixed nuget package issue (compare)
ExpressionTemplate
for that argument, from https://github.com/serilog/serilog-expressions, will allow you to customize the JSON in whatever way you require
class FromContext { }
Destructure.AsScalar<FromContext>()
class RemoveFromContextEnricher: ILogEventEnricher
that removes any property with a scalar value of type FromContext
Enrich.With<RemoveFromContextEnricher>
as the first enricherlog.Information("{Alpha} bit of {Bravo} before {Charlie}", "A", new FromContext(), "details");
@nblumhardt are you able to offer advice on porting from Serilog.Filters.Expressions to Serilog.Expressions for the RAW API as I noticed the former is now deprecated.
.MinimumLevel.Override("Microsoft.Data.SqlClient.EventSource", LogEventLevel.Verbose)
@l
vs @Level
etc. - would you use a hook point to switch back to the earlier names, if we add one, or do you prefer the shorter ones
Serilog.Sinks.*
prefix on NuGet 👍 I would definitely prefer having more control over the repository.
var sensorInput = new { Latitude = 25, Longitude = 134 };
Log.Information(" Processing {@SensorInput} for {ProcessName}", sensorInput);
gives me: System.IndexOutOfRangeException: Index was outside the bounds of the array. at Microsoft.Extensions.Logging.LogValuesFormatter.GetValue(Object[] values, Int32 index)
Log.Information(" Processing {@SensorInput}", sensorInput);
and
Log.Information(" Processing for {ProcessName}");
Works good.
I have an odd problem though. In an AspNetCore app the following code in CreateHostBuilder appears in KibanaLog.Information("Starting app");
But the following code in a method on my controller does notLog.Information("Requested data");
Does anyone have any idea why?
serilog
over there