0.3.0 • Published 5 years ago

daydream-logging v0.3.0

Weekly downloads
4
License
BSL-1.0
Repository
-
Last release
5 years ago

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.

0.3.0

5 years ago

0.2.0

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.1

5 years ago