# rf-discord-logger

> a utility to send logs to a discord channel using webhooks

Latest version **2.1.0** (published 2021-06-27) · ISC license · 0 weekly downloads

## Install

```sh
npm install rf-discord-logger
pnpm add rf-discord-logger
yarn add rf-discord-logger
bun add rf-discord-logger
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.0 |
| Published | 2021-06-27 |
| First published | 2020-11-07 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | ryan forever |
| Maintainers | surfingpikachu |

## Links

- npm: https://www.npmjs.com/package/rf-discord-logger
- npm.io page: https://npm.io/package/rf-discord-logger

## Dependencies (1)

- [discord.js](https://npm.io/package/discord.js.md) ^12.4.1

## Recent versions

- 2.1.0 (latest) — 2021-06-27
- 2.0.1 — 2021-01-12
- 2.0.0 — 2021-01-12
- 1.1.1 — 2020-12-30
- 1.1.0 — 2020-12-20
- 1.0.5 — 2020-11-07
- 1.0.4 — 2020-11-07
- 1.0.3 — 2020-11-07
- 1.0.2 — 2020-11-07
- 1.0.1 — 2020-11-07
- 1.0.0 — 2020-11-07

## README

# rf-discord-logger

![image](https://cdn.glitch.com/dc4b1449-e9df-4aaa-a6ef-c17b2496dea6%2F49180_3_640px.jpg?v=1604715451701)

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.


```javascript

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.log("this is a log", {name: "newLoggerName"}) // changes the username of the bot on the fly
logger.info("this is info")
logger.warn("this is a warning")
logger.error("this is an error")
logger.debug("this is a debug")

```


## methods

`.log(message, opts)`

`.info(message, opts)`

`.warn(message, opts)`

`.error(message, opts)`

`.debug(message, opts)`

---
_Source: https://npm.io/package/rf-discord-logger · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
