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 = ;
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.