java.lang.Object
org.neo4j.driver.internal.logging.ReformattedLogger
- All Implemented Interfaces:
Logger
- Direct Known Subclasses:
ChannelActivityLogger
,PrefixedLogger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Logs bolt messages sent and received by this driver.void
Logs debug message with throwable.void
Logs errors from this driver.void
Logs information from the driver.boolean
Return true if the debug level is enabled.boolean
Return true if the trace logging level is enabled.protected abstract String
void
Logs binary sent and received by this driver.void
Logs warnings that happened when using the driver.void
Logs warnings that happened during using the driver
-
Constructor Details
-
ReformattedLogger
-
-
Method Details
-
error
Description copied from interface:Logger
Logs errors from this driver.Examples of errors logged using this method:
- Network connection errors
- DNS resolution errors
- Cluster discovery errors
-
info
Description copied from interface:Logger
Logs information from the driver.Example of info messages logged using this method:
- Driver creation and shutdown
- Cluster discovery progress
- Specified by:
info
in interfaceLogger
- Parameters:
message
- the information message template. Can containString.format(String, Object...)
-style placeholders, like "%s".params
- parameters used in the information message.
-
warn
Description copied from interface:Logger
Logs warnings that happened when using the driver.Example of info messages logged using this method:
- Usage of deprecated APIs
- Transaction retry failures
- Specified by:
warn
in interfaceLogger
- Parameters:
message
- the warning message template. Can containString.format(String, Object...)
-style placeholders, like "%s".params
- parameters used in the warning message.
-
warn
Description copied from interface:Logger
Logs warnings that happened during using the driverExample of info messages logged using this method:
- Usage of deprecated APIs
- Transaction retry failures
-
debug
Description copied from interface:Logger
Logs bolt messages sent and received by this driver. It is only enabled whenLogger.isDebugEnabled()
returnstrue
. This logging level generates a lot of log entries.Example of debug messages logged using this method:
- Connection pool events, like creation, acquire and release of connections
- Messages sent to the database
- Messages received from the database
- Specified by:
debug
in interfaceLogger
- Parameters:
message
- the debug message template. Can containString.format(String, Object...)
-style placeholders, like "%s".params
- parameters used in generating the bolt message
-
debug
Description copied from interface:Logger
Logs debug message with throwable. -
trace
Description copied from interface:Logger
Logs binary sent and received by this driver. It is only enabled whenLogger.isTraceEnabled()
returnstrue
. This logging level generates huge amount of log entries.Example of debug messages logged using this method:
- Idle connection pings
- Server selection for load balancing
- Messages sent to the database with bytes in hex
- Messages received from the database with bytes in hex
- Specified by:
trace
in interfaceLogger
- Parameters:
message
- the trace message template. Can containString.format(String, Object...)
-style placeholders, like "%s".params
- parameters used in generating the hex message
-
isTraceEnabled
public boolean isTraceEnabled()Description copied from interface:Logger
Return true if the trace logging level is enabled.- Specified by:
isTraceEnabled
in interfaceLogger
- Returns:
- true if the trace logging level is enabled.
- See Also:
-
isDebugEnabled
public boolean isDebugEnabled()Description copied from interface:Logger
Return true if the debug level is enabled.- Specified by:
isDebugEnabled
in interfaceLogger
- Returns:
- true if the debug level is enabled.
- See Also:
-
reformat
-