Skip to content

Microsoft.Extensions.Logging: Console TimestampFormat lost on reload of appsettings.json #45156

@IgorMilavec

Description

@IgorMilavec

Description

I have a net5.0 hosted service running from the console with Console TimestampFormat configured in appsettings.json:

  "Logging": {
    "Console": {
      "TimestampFormat": "[HH:mm:ss] "
    },
  },

Console logger output is property timestamped until I edit and save appsettings.json while the app is running. After that the console output is not timestamped anymore until I restart the app.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-Extensions-LoggingquestionAnswer questions and provide assistance, not an issue with source code or documentation.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions