package log

Import Path
	github.com/neo4j/neo4j-go-driver/v4/neo4j/log (on go.dev)

Dependency Relation
	imports 5 packages, and imported by 7 packages

Involved Source Files bolt_logger.go console.go Package log defines the logging interface used internally by the driver and provides default logging implementations. void.go
Package-Level Type Names (total 5, all are exported)
/* sort exporteds by: | */
( T) LogClientMessage(context string, msg string, args ...interface{}) ( T) LogServerMessage(context string, msg string, args ...interface{}) *ConsoleBoltLogger func github.com/neo4j/neo4j-go-driver/v4/neo4j/db.Connection.SetBoltLogger(boltLogger BoltLogger) func github.com/neo4j/neo4j-go-driver/v4/neo4j/internal/bolt.Connect(serverName string, conn net.Conn, auth map[string]interface{}, userAgent string, routingContext map[string]string, logger Logger, boltLog BoltLogger) (db.Connection, error) func github.com/neo4j/neo4j-go-driver/v4/neo4j/internal/bolt.NewBolt3(serverName string, conn net.Conn, log Logger, boltLog BoltLogger) *bolt.bolt3 func github.com/neo4j/neo4j-go-driver/v4/neo4j/internal/bolt.NewBolt4(serverName string, conn net.Conn, log Logger, boltLog BoltLogger) *bolt.bolt4 func github.com/neo4j/neo4j-go-driver/v4/neo4j/internal/connector.Connector.Connect(address string, boltLogger BoltLogger) (db.Connection, error) func github.com/neo4j/neo4j-go-driver/v4/neo4j/internal/pool.(*Pool).Borrow(ctx context.Context, serverNames []string, wait bool, boltLogger BoltLogger) (db.Connection, error) func github.com/neo4j/neo4j-go-driver/v4/neo4j/internal/router.Pool.Borrow(ctx context.Context, servers []string, wait bool, boltLogger BoltLogger) (db.Connection, error) func github.com/neo4j/neo4j-go-driver/v4/neo4j/internal/router.(*Router).Readers(ctx context.Context, bookmarks []string, database string, boltLogger BoltLogger) ([]string, error) func github.com/neo4j/neo4j-go-driver/v4/neo4j/internal/router.(*Router).Writers(ctx context.Context, bookmarks []string, database string, boltLogger BoltLogger) ([]string, error)
Console is a simple logger that logs to stdout/console. Turn the different log levels on/off as wished, all are off by default. Debugs bool Errors bool Infos bool Warns bool (*T) Debugf(name, id string, msg string, args ...interface{}) (*T) Error(name, id string, err error) (*T) Infof(name, id string, msg string, args ...interface{}) (*T) Warnf(name, id string, msg string, args ...interface{}) *T : Logger func github.com/neo4j/neo4j-go-driver/v4/neo4j.ConsoleLogger(level neo4j.LogLevel) *Console
(*T) LogClientMessage(id, msg string, args ...interface{}) (*T) LogServerMessage(id, msg string, args ...interface{}) *T : BoltLogger func github.com/neo4j/neo4j-go-driver/v4/neo4j.ConsoleBoltLogger() *ConsoleBoltLogger
Logger is used throughout the driver for logging purposes. Driver client can implement this interface and provide an implementation upon driver creation. All logging functions takes a name and id that corresponds to the name of the logging component and it's identity, for example "router" and "1" to indicate who is logging and what instance. Database connections takes to form of "bolt3" and "[email protected]:7687" where "bolt3" is the name of the protocol handler in use, "bolt-123" is the databases identity of the connection on server "192.168.0.1:7687". ( T) Debugf(name string, id string, msg string, args ...interface{}) Error is called whenever the driver encounters an error that might or might not cause a retry operation which means that all logged errors are not critical. Type of err might or might not be a publicly exported type. The same root cause of an error might be reported more than once by different components using same or different err types. ( T) Infof(name string, id string, msg string, args ...interface{}) ( T) Warnf(name string, id string, msg string, args ...interface{}) *Console Void func github.com/neo4j/neo4j-go-driver/v4/neo4j/internal/bolt.Connect(serverName string, conn net.Conn, auth map[string]interface{}, userAgent string, routingContext map[string]string, logger Logger, boltLog BoltLogger) (db.Connection, error) func github.com/neo4j/neo4j-go-driver/v4/neo4j/internal/bolt.NewBolt3(serverName string, conn net.Conn, log Logger, boltLog BoltLogger) *bolt.bolt3 func github.com/neo4j/neo4j-go-driver/v4/neo4j/internal/bolt.NewBolt4(serverName string, conn net.Conn, log Logger, boltLog BoltLogger) *bolt.bolt4 func github.com/neo4j/neo4j-go-driver/v4/neo4j/internal/pool.New(maxSize int, maxAge time.Duration, connect pool.Connect, logger Logger, logId string) *pool.Pool func github.com/neo4j/neo4j-go-driver/v4/neo4j/internal/router.New(rootRouter string, getRouters func() []string, routerContext map[string]string, pool router.Pool, logger Logger, logId string) *router.Router
Logger implementation that throws away all log events. ( T) Debugf(name, id string, msg string, args ...interface{}) ( T) Error(name, id string, err error) ( T) Infof(name, id string, msg string, args ...interface{}) ( T) Warnf(name, id string, msg string, args ...interface{}) T : Logger
Package-Level Functions (total 2, in which 1 are exported)
NewId generates a new id atomically.
Package-Level Variables (only one, which is unexported)
Package-Level Constants (total 7, in which 6 are exported)
List of component names used as parameter to logger functions.
List of component names used as parameter to logger functions.
List of component names used as parameter to logger functions.
List of component names used as parameter to logger functions.
List of component names used as parameter to logger functions.
List of component names used as parameter to logger functions.