Skip to content

Question about core 2 #66

Closed
Closed
@danjohnso

Description

@danjohnso

So with Core 2 moving the logging configuration into Program.cs, what is the correct way to read in the configuration for setting logger?

The sample here shows just reading from appsettings.json, but the main reason I use the configuration file is so I can vary my config by environment using the environment files. Seems like the configuration is not yet available for logging to read it in or am I missing something obvious?

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