Skip to content

AppSettings for DLL library #41

Open
@DiskCrasher

Description

@DiskCrasher

A few questions before you begin:

Is this an issue related to the Serilog core project or one of the sinks or community projects. This issue list is intended for Serilog core issues. If this issue relates to a sink or related project, please log on the related repository. Please use Gitter chat and Stack Overflow for discussions and questons.

Does this issue relate to a new feature or an existing bug?

  • Bug
  • [ x ] New Feature

What version of Serilog is affected? Please list the related NuGet package.
SeriLog 2.8

What is the target framework and operating system? See target frameworks & net standard matrix.

  • netCore 2.0
  • netCore 1.0
  • [ x ] 4.7
  • 4.6.x
  • 4.5.x

Please describe the current behavior?
Currently SeriLog can read settings from an app.config or web.config file using AppSettings. However, for a DLL library there is no such file. The typical argument is that the calling app should control the settings. But if there are several calling apps using the same library this can become cumbersome very quickly.

Please describe the expected behavior?
There should be a way to set the logging behaviors (e.g. level) in an XML file for DLL libraries too. (Coming from log4net where this behavior is supported.)

If the current behavior is a bug, please provide the steps to reproduce the issue and if possible a minimal demo of the problem

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