This package has been deprecated

Author message:

This package is no longer updated and isn't recommended for use.

djs-logger

1.0.2 • Public • Published

DJS Logger

A simple yet powerful logging system that logs errors, saves them, and sends them to channels. Fully Customisable.

Build Status

const { log } = require("djs-logger");

log({
    save: true,
    savefile: 'C:|Users|ExampleUser|Desktop|logs.txt',
    error: "Test"
});

How to use

This package is easy to use and can be used in a number of locations. The most common being in a .catch()

Required
  • save - true or false
  • discord - true or false
  • error - error message

Example:

log({
    save: false,
    discord: false,
    error: "example error"
})
Save

When using save: true you need to supply:

  • savefile - Save file location The save file location must look like this:
    • C:|Users|ExampleUser|Desktop|logs.txt with all the \ in your file path replaced with |
Discord

When using discord: true you need to supply:

  • channel - The name of the channel the error message should go in (Case Sensitive)
  • messagelinker - The message from your bot.on("message")

Features

  • Save errors to file
  • Errors put into console
  • Errors sent to discord channel

Help

  • GHOST#7524

Package Sidebar

Install

npm i djs-logger

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

4.12 kB

Total Files

3

Last publish

Collaborators

  • ghostsos