Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/slack_oauth/src/logger.ts>Logger

Setup the OAuth flow for Slack apps easily. Deno port of @slack/oauth
Latest
interface Logger
Re-export
import { type Logger } from "https://deno.land/x/slack_oauth@3.0.2/src/logger.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.