0.1.1 • Published 3 months ago
@montebravo.tech/mb-discord-logger v0.1.1
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()