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

x/grm/src/mod.ts>extensions.Logger

MTProto API Client for Deno 🦕
Go to Latest
class extensions.Logger
import { extensions } from "https://deno.land/x/grm@0.5.2/src/mod.ts";
const { Logger } = extensions;

Constructors

new
Logger(level?: LogLevel)

Properties

private
_logLevel: LogLevel | `${LogLevel}`
private
colors: { warn: string; debug: string; start: string; end: string; error: string; info: string; }
private
levels: string[]
readonly
logLevel
messageFormat: string
tzOffset: number

Methods

_log(
level: LogLevel,
message: string,
color: string,
)
debug(message: string)
error(message: string)
format(message: string, level: string)
info(message: string)
log(
level: LogLevel,
message: string,
color: string,
)
setLevel(level: LogLevel | `${LogLevel}`)
warn(message: string)

Static Methods

setLevel(_level: string)