UNPKG

slack-logger-light

Version:

Zero dependency logger for slack, super light, great for service workers

16 lines (15 loc) 479 B
declare class SlackLogger { private APP_TOKEN; private CHANNEL; private NO_CONSOLE_LOG_ON_ERROR; private readonly MESSEGE_EP; constructor({ APP_TOKEN, CHANNEL_ID, NO_CONSOLE_LOG_ON_ERROR }: { APP_TOKEN: string; CHANNEL_ID: string; NO_CONSOLE_LOG_ON_ERROR?: boolean; }); changeChannel: (channel: string) => void; changeAppToken: (appToken: string) => void; log(message: string): Promise<void>; } export { SlackLogger };