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
I'm trying to use the following target Layout to get NLog to send the message verbatim, but it still wraps it in a bunch of unnecessary data... The same target Layout works fine for file logging.
The Layout is hard coded just $message, however, later completely overwritten by a Json formatter, also hardcoded content and layout. I believe it would be more respectful to allow for a layout configuration element, since NLog offer a Json layout component: https://github.com/NLog/NLog/wiki/JsonLayout
Hello, Has this been implemented? We were looking at using this package however it does not allow us to format our messages the way we need to for our organization.
I'm trying to use the following target Layout to get NLog to send the message verbatim, but it still wraps it in a bunch of unnecessary data... The same target Layout works fine for file logging.
_splunkTarget = new SplunkHttpEventCollector() {
ServerUrl = new Uri(SplunkURL),
Token = SplunkHecToken,
Channel = SplunkHecToken,
RetriesOnError = 1,
MaxConnectionsPerServer = 20,
Layout = "${message}"
};
The text was updated successfully, but these errors were encountered: