You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

djs-logger

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

djs-logger

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

1.0.2
latest
npmnpm
Version published
Maintainers
1
Created
Source

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

Keywords

djs

FAQs

Package last updated on 23 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts