Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure JsonFormatter parameters via appsettings.json #392

Closed
johannesmols opened this issue Aug 11, 2023 · 3 comments
Closed

Configure JsonFormatter parameters via appsettings.json #392

johannesmols opened this issue Aug 11, 2023 · 3 comments

Comments

@johannesmols
Copy link

PR #281 added support for constructor parameters in appsettings.json. However, attempting to do this with the JsonFormatter gives an InvalidOperationException as described by @WattsC-90 here. It seems that there a few that have the same issue, and I do too now. Since the PR is merged, I am opening a new issue to get attention to this.

@FaroukOyekunle
Copy link

Where you able to complete the solution to this issues @johannesmols.

@johannesmols
Copy link
Author

Hi @FaroukOyekunle, I forgot all about this one. The newest comment on the linked issue actually resolves it in my case: #281 (comment). I was also missing the "Serilog" behind the type of the formatter.

@FaroukOyekunle
Copy link

Cool! That's right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants