🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

dilog

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dilog

A simple console styling and logging system.

latest
npmnpm
Version
0.0.1
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

d!log

A simple and lightweight advanced console styling and logging system.

What is this?

This package is containing a simple utility to make your console more catchy. This can be used as a alternative of console.log();or can be sayed as the remastered one.

This is logie. While logie is discontinued. I will continue it here. And i have permissions to do it.

Features

  • Time at the beginning of the log
  • Colored console
  • Support bold
  • Simple and beginners friendly.

To provide a lightweight and simple environment, we only add those features. New feature will be added later only if its useful or important.

Usage

First you need to install the package.

npm i dilog

Afterwards, define the libraries to your code

const log = require('dilog');

Now you can start using it with

log.<info>('Hello! This is a info.');

API

  • log.info() - Log a certain information.
  • log.warn() - Log a warning. Useful for displaying a small and not damagable issue.
  • log.error() - Log a code error. Sometimes used for logging system crash.
  • log.success() - Log a successfull task.
  • log.event() - Log a certain event. Such as a user interaction.
  • log.notice() - Display a user noticable log that can cause a certain misfunction.
  • log.critical() - Display a user noticable log that can lead to a system crash.
  • log.debug() - Log a normal information.

Styling

  • Bold

Use <log>.<info>.bold() to bold your current log in the console.

More styling maybe added soon.

Log file

All console log will be writen to a log file soon.

Example

DiscordJS Bot Startup Logging. DiscordJS

All Console Color Formatting. Color

Support

You can join our Discord Server (Soon) to ask for a support and tell a suggestion or a bug.

Keywords

console

FAQs

Package last updated on 12 Dec 2021

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