daydream-logging
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

Daydream Logging

console.log wrapper to imitate colorful logging

Daydream Logging is part of the Daydream Discord Bot.

Installation

# Assuming you use NPM 
npm i daydream-logging
# Assuming you use yarn instead 
yarn add daydream-logging

Usage

In your codebase:

const ddlog = require("daydream-logging");
ddlog(type, message, mod)

API

The module exports a function with three arguments:

  • type: This can be "log", "warn", "question", "info", "done", "error", "fatal", "debug" or "arrow". Used to indicate severity.
  • message: This is a user-friendly message that serves as the main point.
  • module: This is a user-friendly-ish message that can be used to indicate where the logging comes from. "General Logging" if not defined.

Package Sidebar

Install

npm i daydream-logging

Weekly Downloads

2

Version

0.3.0

License

BSL-1.0

Unpacked Size

4.79 kB

Total Files

7

Last publish

Collaborators

  • sp46