-
Notifications
You must be signed in to change notification settings - Fork 72
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
Conversation
@igorvoltaic yes please. |
Yes, sent the message |
There was a problem hiding this 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
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 | ||
} | ||
} |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@conker84 done
Hey @conker84! |
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: