You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Firstly, I'm using the 4.0.0-beta3 release as I understand the 3.x releases have a critical bug.
I have tried to follow the readme to configure the sink via appsettings.json, however I receive the following error:
"Unable to find a method called LokiHttp for supplied arguments: labels, serverUrl. Candidate methods are:
LokiHttp(configFactory)"
I attribute this to a pull request that removed the logging configuration extension overloads and replaced them with a single argument. However, I cannot figure out whether it's even possible to leverage this argument from appsettings.json as Serilog complains it cannot instantiate a Func.
I have worked around this issue by adding my own extension method, however, I would like to bring it to your attention as it breaks for anybody using the existing configuration file approach.
The text was updated successfully, but these errors were encountered:
Howdy,
Firstly, I'm using the 4.0.0-beta3 release as I understand the 3.x releases have a critical bug.
I have tried to follow the readme to configure the sink via appsettings.json, however I receive the following error:
"Unable to find a method called LokiHttp for supplied arguments: labels, serverUrl. Candidate methods are:
LokiHttp(configFactory)"
I attribute this to a pull request that removed the logging configuration extension overloads and replaced them with a single argument. However, I cannot figure out whether it's even possible to leverage this argument from appsettings.json as Serilog complains it cannot instantiate a Func.
I have worked around this issue by adding my own extension method, however, I would like to bring it to your attention as it breaks for anybody using the existing configuration file approach.
The text was updated successfully, but these errors were encountered: