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

x/slack_oauth/src/logger.ts>ConsoleLogger

Setup the OAuth flow for Slack apps easily. Deno port of @slack/oauth
Latest
class ConsoleLogger
implements Logger
Re-export
import { ConsoleLogger } from "https://deno.land/x/slack_oauth@3.0.2/src/logger.ts";

Default logger which logs to stdout and stderr

Constructors

new
ConsoleLogger()

Properties

private
level: LogLevel

Setting for level

private
name: string

Name

Methods

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

Log a debug message

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

Log an error message

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

Log an info message

setLevel(level: LogLevel): void

Sets the instance's log level so that only messages which are equal or more severe are output to the console.

setName(name: string): void

Set the instance's name, which will appear on each log line before the message.

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

Log a warning message

Static Properties

private
labels: Map<LogLevel, string>

Map of labels for each log level

private
severity: [key in LogLevel]: number

Map of severity as comparable numbers for each log level

Static Methods

private
isMoreOrEqualSevere(a: LogLevel, b: LogLevel): boolean

Helper to compare two log levels and determine if a is equal or more severe than b