Skip to main content
Module

x/slack_bolt/deps.ts>ConsoleLogger

TypeScript framework to build Slack apps in a flash with the latest platform features. Deno port of @slack/bolt
Latest
class ConsoleLogger
implements Logger
import { ConsoleLogger } from "https://deno.land/x/slack_bolt@1.0.0/deps.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