Click or drag to resize

ILogger Interface

The new ILogger differs from the legacy one in the message format the logging methods are accepting. In ILogger, each logging method accepts a message which specifies how the message would be formatted and one or many arguments that are used to replace placeholders in the message string. The following example shows a simplified version of how the ILogger is used in this driver:
logger.Info("Hello {0}, {1}", "Alice", "Bob");

Namespace:  Neo4j.Driver
Assembly:  Neo4j.Driver (in Neo4j.Driver.dll) Version: 4.1.0
Syntax
public interface ILogger

The ILogger type exposes the following members.

Methods
  NameDescription
Public methodDebug
Logs useful messages for debugging. The Bolt messages sent and received by this driver are logged at this level.
Public methodError
Logs an error.
Public methodInfo
Logs an information message.
Public methodIsDebugEnabled
Return if debug logging level is enabled.
Public methodIsTraceEnabled
Return if trace logging level is enabled.
Public methodTrace
Log useful messages for tracing. The Bolt messages sent and received in hex binary are logged at this level.
Public methodWarn
Logs a warning.
Top
See Also