neo4j/neo4j-go-driver

[Feature Request - 6.0] Pass context to logging functions

adrianiacobghiula opened this issue · 1 comments

Hi,

In the ideea of having a consistent trace of a request in the logs is it possible to have the context as first parameter in the logging functions ( https://github.com/neo4j/neo4j-go-driver/blob/5.0/neo4j/log/logger.go#L46-L49 ) .I believe one could, then, add a "requestID" in the context and expect to have this parameter in a custom implementation of the logger to print it

Thank you

Thanks for the suggestion.

This certainly cannot happen before 6.0 as it constitutes a breaking change.

Generally, I think this change provides value 👍