You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please describe the current behaviour you are experiencing?
When output template has {Properties:j} it renders complex types as {..., "$type": "..."}.
Please describe the expected behaviour if the ?
Instead it should render it without $type or allow to override that behavior (also in config).
If the current behavior is a bug, please provide the steps to reproduce the issue and if possible a minimal demo of the problem NOTE: A small code sample goes a long way in expediting bug fixes or illustrating an enhancement you are proposing.
public class HttpRequestInfo
{
public PathString Path { get; set; }
public Dictionary<string, string> QueryString { get; set; }
}
Log.Logger = new LoggerConfiguration()
.WriteTo.Console(outputTemplate: "[{Timestamp:HH:mm:ss} {Level:u3}] <s:{SourceContext}> {Message:lj}{NewLine}{Exception}{NewLine}{Properties:j}{NewLine}")
.CreateLogger();
Log.Logger.ForContext("info", new HttpRequestInfo { Path = "/hello"}, true)
.Error("boom");
Does this issue relate to a new feature or an existing bug?
What version of Serilog Console Sink is affected by this issue? Please list the related NuGet package.
All, I assume
What is the target framework and operating system affected by this issue? Please see target frameworks & net standard matrix.
Please describe the current behaviour you are experiencing?
When output template has
{Properties:j}
it renders complex types as{..., "$type": "..."}
.Please describe the expected behaviour if the ?
Instead it should render it without
$type
or allow to override that behavior (also in config).If the current behavior is a bug, please provide the steps to reproduce the issue and if possible a minimal demo of the problem
NOTE: A small code sample goes a long way in expediting bug fixes or illustrating an enhancement you are proposing.
output sample:
The text was updated successfully, but these errors were encountered: