Skip to content

[BUG]Configuration no effect in appsettings.json's Serilog section. #492

@vrecluse

Description

@vrecluse

My appsettings.json:

{
  "Serilog": {
    "WriteTo": [
      {
        "Name": "Async",
        "Args": {
          "configure": [
            {
              "Name": "Console",
              "Args": {
                "formatter": "Elastic.CommonSchema.Serilog.EcsTextFormatter, Elastic.CommonSchema.Serilog",
                "includeHost": false,
                "includeProcess": false,
                "includeUser": false,
                "includeActivityData": false
              }
            }
          ]
        }
      }
  ]
}

But the host, user, and other sections are still showed in the log.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions