logger 🪵
This module provides a logging utility for the xyz.
- Source
Methods
(inner) logflare() → {function}
Configures the Logflare logger.
- Source
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:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
log | string | | The message or object to log. | ||
key | string | <optional> | 'err' | The log level or key. |
- Source
Returns:
- Type:
- void
(inner) postgresql() → {function}
Configures the PostgreSQL logger.
- Source
Returns:
A function that logs messages to a PostgreSQL database.
- Type:
- function