Update the example README to the payload the target sends today - #30
Merged
Merged
Conversation
The JSON samples still showed the typed fields of the Logtail days (logger_string, level_string, line_integer, message_string) and a message rendered by the old default layout. They are replaced by the payload 1.1.0 sends for the same calls, captured from a local receiver, and a sample of an error with the top-level exception field is added. Also fixes the "Logtai!" typo. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The JSON samples in
example-project/README.mddate from the Logtail days: typed field names (logger_string,level_string,line_integer,message_string…), numbers as strings, and a message rendered by the old default layout (2022-01-26 10:25:06.0980|DEBUG|Program|…), none of which the target sends. Docs only, no tests.dt,message,level, andcontextwithlogger,propertiesandruntime. I captured them by running the exampleProgram.cs(the color formatter left out, as the README's setup does not use it) and aShoppingCartclass with the README'snlog.configagainst a local receiver, on NLog 4.7.11, which the example project gets through the package. Only the file paths are replaced with the Windows path the old samples used.exceptionfield.layout="${message}"the logger name is not in the message, it is sent incontext.logger. The search formula usescontext.logger.The changes stay in the JSON samples and the sentences around them. The "Additional configuration" snippet and the
endpointlines, which #19, #22 and #23 edit, are untouched, so they merge cleanly with this PR.🤖 Generated with Claude Code