New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@logback4js/database

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@logback4js/database

Database Appenders for Logback4js.

latest
Source
npmnpm
Version
3.0.6
Version published
Maintainers
1
Created
Source

Logback4js

npm downloads License Build codecov CodeQL Codacy Badge

Logger for JavaScript inspired by Logback.

Overview

---
title: "Outline Diagram"
---
erDiagram
    LoggerFactory ||--|{ Logger: ""
    Logger }o--o{ Appender: ""

ClassRole
LoggerFactoryFactory class of Loggers.
LoggerManage and log Appenders.
AppenderDefine output destination and append log.

Appenders

List of Appenders library provides:

AppenderModuleDescription
Console Appender@logback4js/coreOutput to console. Core module.
HTTP POST Appender@logback4js/corePost logging API. Core module.
LocalStorage Appender@logback4js/storageOutput to LocalStorage.
SessionStorage Appender@logback4js/storageOutput to SessionStorage.
IndexedDB Appender@logback4js/storageOutput to IndexedDB.
Simple Mail Appender@logback4js/mailSend text mail using Nodemailer.
Rich Mail Appender@logback4js/mailSend html mail using Nodemailer.
SQLite Appender@logback4js/database (experimental)Insert record into SQLite database using node-sqlite3. It is planed to be migrate node:sqlite after Node.js v20 is going to be EOL.
PostgreSQL Appender@logback4js/database (experimental)Insert record into PostgreSQL database using node-postgres.
Redis Appender@logback4js/database (experimental)Set key into Redis using node-redis.
MongoDB Appender@logback4js/database (experimental)Insert document into MongoDB using the official MongoDB Node.js driver. When using this appender, install mongodb.
Google Analytics Appender@logback4js/google-analyticsSend event using Google Analytics.
Google Analytics for Firebase Appender@logback4js/google-analyticsSend event using Google Analytics for Firebase.
Slack Appender@logback4js/slackSend message using Slack Web API. Not tested yet.
Twitter Appender@logback4js/twitterSend message using SDKs wrap the X API. Using this Appender in browser, proxy setting is required to bypass CORS. Not tested yet.
Microsoft Teams Appender@logback4js/microsoftSend message to Teams using Microsoft Graph. Use workflow with custom HTTP POST Appender might be better. Not tested yet.
Discord Appender@logback4js/discordSend message using discord.js. Use Discord Webhook Appender might be better. Not tested yet.
Discord Webhook Appender@logback4js/discordSend message using Discord Webhook. Not tested yet.

Versioning

After release version 1.0.0, follow the rules of Semantic Versioning 2.0.0.

  • MAJOR: Update core module including breaking change.
  • MINOR: Update core module NOT including breaking change or update others such as adding new features.
  • PATCH: Update NOT including behavior change such as update documents or dependencies.

Build

Run npm run build to build the project. The build artifacts will be stored in the dist/ directory.

Running unit tests

Run npm run test to execute the unit tests via Jest.

# Build packages before test
npm ci && npm run build
# Boot mock
docker compose -f=mock/compose.yaml up -d
# Run unit tests
npm run test

Buy Me A Coffee

Keywords

log

FAQs

Package last updated on 24 Jan 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts