java.lang.Object
org.neo4j.driver.internal.logging.ReformattedLogger
- All Implemented Interfaces:
Logger
- Direct Known Subclasses:
PrefixedLogger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidLogs bolt messages sent and received by this driver.voidLogs debug message with throwable.voidLogs errors from this driver.voidLogs information from the driver.booleanReturn true if the debug level is enabled.booleanReturn true if the trace logging level is enabled.protected abstract StringvoidLogs binary sent and received by this driver.voidLogs warnings that happened when using the driver.voidLogs warnings that happened during using the driver
-
Constructor Details
-
ReformattedLogger
-
-
Method Details
-
error
Description copied from interface:LoggerLogs 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:LoggerLogs information from the driver.Example of info messages logged using this method:
- Driver creation and shutdown
- Cluster discovery progress
- Specified by:
infoin 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:LoggerLogs warnings that happened when using the driver.Example of info messages logged using this method:
- Usage of deprecated APIs
- Transaction retry failures
- Specified by:
warnin 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:LoggerLogs 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:LoggerLogs 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:
debugin 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:LoggerLogs debug message with throwable. -
trace
Description copied from interface:LoggerLogs 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:
tracein 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:LoggerReturn true if the trace logging level is enabled.- Specified by:
isTraceEnabledin interfaceLogger- Returns:
- true if the trace logging level is enabled.
- See Also:
-
isDebugEnabled
public boolean isDebugEnabled()Description copied from interface:LoggerReturn true if the debug level is enabled.- Specified by:
isDebugEnabledin interfaceLogger- Returns:
- true if the debug level is enabled.
- See Also:
-
reformat
-