Skip to main content
Module

x/slack_bolt/mod.ts>Logger

TypeScript framework to build Slack apps in a flash with the latest platform features. Deno port of @slack/bolt
Latest
interface Logger
Re-export
import { type Logger } from "https://deno.land/x/slack_bolt@1.0.0/mod.ts";

Interface for objects where objects in this package's logs can be sent (can be used as logger option).

Methods

debug(...msg: any[]): void

Output debug message

info(...msg: any[]): void

Output info message

warn(...msg: any[]): void

Output warn message

error(...msg: any[]): void

Output error message

setLevel(level: LogLevel): void

This disables all logging below the given level, so that after a log.setLevel("warn") call log.warn("something") or log.error("something") will output messages, but log.info("something") will not.

getLevel(): LogLevel

Return the current LogLevel.

setName(name: string): void

This allows the instance to be named so that they can easily be filtered when many loggers are sending output to the same destination.