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

Fixes #488: Add logging to the driver config (4.1) #502

Closed
wants to merge 3 commits into from

Conversation

igorvoltaic
Copy link

Fixes #488

Suggestion to change the log level of Neo4j driver

Proposed Changes

A brief list of proposed changes in order to fix the issue:

  • add log level to configBuilder in Neo4jConnectorConfig.kt
  • add option to configure driver log level from connector props
  • add incorrect input test

@igorvoltaic
Copy link
Author

Hi @conker84! Should I close #494?

@conker84
Copy link
Contributor

@igorvoltaic yes please.
One more thing, did you sign the CLA?

@igorvoltaic
Copy link
Author

@igorvoltaic yes please. One more thing, did you sign the CLA?

Yes, sent the message

Copy link
Contributor

@conker84 conker84 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@igorvoltaic thank you please check my comment

Comment on lines 38 to 49
enum class DriverLogLevel(var level: Level) {
ERROR(Level.SEVERE),
INFO(Level.INFO),
WARN(Level.WARNING),
DEBUG(Level.FINE),
TRACE(Level.FINEST);

// Return 'INFO' if user supplied incorrect level name
companion object {
fun from(type: String?): DriverLogLevel = values().find { it.name == type } ?: INFO
}
}
Copy link
Contributor

@conker84 conker84 Oct 1, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This means that we need to document the mapping of the log level, moreover if something change in the driver logging name we need to update the code, can you please just do as asked here?

https://github.com/neo4j-contrib/neo4j-streams/pull/494/files#diff-74b841284d99066b9e11d2f6b1400fde514925d524e9fcfd5b529231663905feR118

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@conker84 done

@igorvoltaic igorvoltaic requested a review from conker84 October 1, 2021 16:08
@igorvoltaic
Copy link
Author

igorvoltaic commented Nov 13, 2021

Hey @conker84!
Please let me know if this still valid or you decided not to merge it so I better close the PR?

@igorvoltaic igorvoltaic deleted the 4.1-logger branch November 14, 2022 14:38
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

Successfully merging this pull request may close these issues.

Change the log level of Neo4j driver
2 participants