Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Contextual logging proposal discussion #1322

Open
sameerajayasoma opened this issue Nov 5, 2024 · 2 comments
Open

Contextual logging proposal discussion #1322

sameerajayasoma opened this issue Nov 5, 2024 · 2 comments
Labels
Area/StdLib Relates to Ballerina Standard Library Type/Improvement Enhancement to language design

Comments

@sameerajayasoma
Copy link
Contributor

sameerajayasoma commented Nov 5, 2024

Please use this issue to discuss the contextual logging proposal.

@sameerajayasoma sameerajayasoma added Type/Improvement Enhancement to language design Area/StdLib Relates to Ballerina Standard Library labels Nov 5, 2024
@jclark
Copy link
Collaborator

jclark commented Nov 5, 2024

The terminology of "key-value pairs" sounds like it comes from Go's structured logging. In Ballerina terminology, what you are providing is a mapping.

@sameerajayasoma
Copy link
Contributor Author

Ack. The term "key-value pairs" is coming from the current ballerina/log API design. See: https://central.ballerina.io/ballerina/log/2.10.0#printInfo. I guess it is too late to update the function signature :(

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Area/StdLib Relates to Ballerina Standard Library Type/Improvement Enhancement to language design
Projects
None yet
Development

No branches or pull requests

2 participants