logger 🪵

This module provides a logging utility for the xyz.

Methods

(inner) logflare() → {function}

Configures the Logflare logger.

Returns:

A function that logs messages to Logflare.

Type: 
function

(inner) logger(log, keyopt) → {void}

Logs a message to the configured logger or console.

Parameters:
NameTypeAttributesDefaultDescription
logstring | Object

The message or object to log.

keystring<optional>
'err'

The log level or key.

Returns:
Type: 
void

(inner) postgresql() → {function}

Configures the PostgreSQL logger.

Returns:

A function that logs messages to a PostgreSQL database.

Type: 
function