daydream-logging
v0.3.0
Published
console.log wrapper to imitate colorful logging
Downloads
17
Readme
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.