Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/neo4j_lite_client/core/internal/index.ts>logger.Logger

Unofficial Neo4j Driver for Deno
Latest
class logger.Logger
import { logger } from "https://deno.land/x/neo4j_lite_client@4.4.6/core/internal/index.ts";
const { Logger } = logger;

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: LogLevel
private
readonly
_loggerFunction: LoggerFunction

Methods

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.

Create a no-op logger implementation.