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

How to correctly map the payload of a log.atInfo to a structured log #451

Open
BashouT opened this issue Oct 16, 2024 · 2 comments
Open

Comments

@BashouT
Copy link

BashouT commented Oct 16, 2024

I'm using logback and I believe your library would allow me to map a logs payload to the output. I'm trying to use the payload part of the log to pass an event.

Something like
log.atInfo { message = "test" payload = buildMap(capacity = 1) { put(LogEvent.Event, LogEvent.Test_Event}}

Your wiki or docs don't really clearly tell me how I can access this payload value.

Copy link

Thank you for reporting an issue. See the wiki for documentation and slack for questions.

@oshai
Copy link
Owner

oshai commented Oct 16, 2024

This might be helpful. https://www.baeldung.com/java-structured-logging

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