-
Notifications
You must be signed in to change notification settings - Fork 39
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
sumo serilog appender failing to substitute template string variables #81
Comments
@wdolek any comment on this? |
@eddit0r Sorry for such delay in response, completely missed notification. From how you described the issue, I'm not really sure what could be the cause - template seems to be OK, we are using logging similar way without any problem. I can try to debug, but no promise. (Yet I'm puzzled that it works as expected with just console sink) Regarding exception thrown and its stack trace, I would assume that this is between SumoLogic server and client - as you can see, common SumoLogic code is used to send events. What does under load mean in your case? Would it be possible to try with different logging framework (NLog?) under same load? |
@eddit0r I realized I might misunderstand your issue regarding replacing. I think what you see is intentional. Let's say I log message with this template: This is what I get in SumoLogic:
... so yes, Did this help you? Are you expecting message to be replaced? @bin3377 is this how it is supposed to work? |
For me, keeping value of |
@wdolek I think the customers expectation is that the substitution would function as the console loggers did. Unfortunately I am relaying this detail secondhand. |
@eddit0r, so after all it's not issue of library - it's by design of Serilog Let us know whether this helped. |
A sumo customer has an issue implementing the sumo serilog appender.
The sumo appender is not substituting variables as expected.
The standard serilog console logger is performing the substitutions as expected.
The customer suspects a template issue:
example of failed substitution.
_messageLogger.Error("{name} - Failed to publish a message, RequestId:{correlationId}, HttpResponseMessage: {httpResponse}", "PublishCandidate", requestId, errorMessage);
It is hooked up to the sumo driver in the following way :
The text was updated successfully, but these errors were encountered: