Wondering what’s next for npm?Check out our public roadmap! »

    rf-discord-logger

    2.0.1 • Public • Published

    rf-discord-logger

    image

    a utility to send logs to a discord channel using webhooks

    usage

    think of this as a normal console logger, but sends the logs to a discord channel, using webhooks.

    const DiscordLogger = require("rf-discord-logger")
    const logger = new DiscordLogger({
    	name: "discordLogger", // name your logger, defaults to "logger"
    	url: process.env.URL, // webhook url
    	icons: false // show icons instead of [LOG], [WARN], etc.
    })
    
    
    logger.log("this is a log")
    // [LOG] this is a log
    logger.info("this is info")
    logger.warn("this is a warning")
    logger.error("this is an error")

    Keywords

    none

    Install

    npm i rf-discord-logger

    DownloadsWeekly Downloads

    15

    Version

    2.0.1

    License

    ISC

    Unpacked Size

    3.57 kB

    Total Files

    5

    Last publish

    Collaborators

    • avatar