Skip to content

String Quoting - global disable switch #253

@rcollina

Description

@rcollina
  • the exact package id and version you're using - Serilog.Sinks.Console 5.0.0 via Serilog.AspNetCore 8.0.1
  • your dotnet toolchain version, target framework, and operating system - dotnet sdk 8.0.205, dotnet 8
  • the current behavior - string quoting is opt out
  • what you expect or want to happen instead - a global switch to turn off string quoting for all message and scope properties

Hello,
I can't for the life of me find a way to globally disable automatic string quoting, i.e.:
image

This is my current outputTemplate: [{Timestamp:HH:mm:ss} {Level}] {SourceContext}: {Message:lj}{NewLine}{Exception}

What am I doing wrong?

Thanks for all and any input.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions