import { Logger } from "https://deno.land/x/neo4j_lite_client@4.4.6/core/internal/logger.ts";
Logger used by the driver to notify about various internal events. Single logger should be used per driver.
Constructors
new
Logger(level: LogLevel, loggerFunction: LoggerFunction)Properties
private
readonly
_level: LogLevelprivate
readonly
_loggerFunction: LoggerFunctionMethods
debug(message: string)
Log a debug message.
error(message: string)
Log an error message.
info(message: string)
Log an info message.
isDebugEnabled(): boolean
Check if debug logging is enabled, i.e. it is not a no-op implementation.
isErrorEnabled(): boolean
Check if error logging is enabled, i.e. it is not a no-op implementation.
isInfoEnabled(): boolean
Check if info logging is enabled, i.e. it is not a no-op implementation.
isWarnEnabled(): boolean
Check if warn logging is enabled, i.e. it is not a no-op implementation.
warn(message: string)
Log an warning message.
Static Methods
create(driverConfig: { logging?: LoggingConfig; }): Logger
Create a new logger based on the given driver configuration.