Socket
Book a DemoInstallSign in
Socket

sequelize-pretty-logger

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sequelize-pretty-logger

A Syntax-Highlighting Pretty Logger for Sequelize

1.0.3
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

sequelize-pretty-logger

A Logger for the Sequelize ORM that reindents and syntax highlights the SQL

This relies on prismjs, prism-console and pretty-data modules to work it's magic.

It changes the default hard to read sequelize logging from this:

Sequelize Default Logging

To this:

Sequelize Pretty Logging

Usage

First install the package

npm install sequelize-pretty-logger

Then require it in and call it to initialize your log function.

Then feed it to sequelize's logging option.

const log = require('sequelize-pretty-logger`)();

const db = new Sequelize(process.env.DATABASE_URL, {
  logging: log
});

Keywords

Sequelize

FAQs

Package last updated on 26 Oct 2022

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.