mb-discord-logger-test
v0.0.7
Published
This package publishes stderr to a Discord thread.
Downloads
23
Readme
This package publishes stderr to a Discord thread.
To do so, it expects the following environment variables to be set:
DISCORD_WEBHOOK_URL=
DISCORD_THREAD_ID=
APP_ENV=
*APP_ENV prepends the logs and is supposed to indicate something like "development", "staging", "production", etc.
Usage
import { hookDiscordLoggingToStderr } from 'mb-discord-logger-test';
hookDiscordLoggingToStderr()
