Skip to content

export Class

Logger ​

Constructor ​

ts
 new Logger( level )
ParameterTypeDescription
level = LogLevel.Debugundefined | LogLevel

Properties ​

level : LogLevel ​

staticreadonly levels : Map<LogLevel, LogMethods> ​

default: ...

Methods ​

debug( ...argumants ) ​

ParameterTypeDescription
...argumantsany[]

Returns: void

error( ...argumants ) ​

ParameterTypeDescription
...argumantsany[]

Returns: void

has( level ) ​

ParameterTypeDescription
levelLogLevel

Returns: boolean

info( ...argumants ) ​

ParameterTypeDescription
...argumantsany[]

Returns: void

warn( ...argumants ) ​

ParameterTypeDescription
...argumantsany[]

Returns: void

A modern, powerful library for building your Telegram bots, with seamless support for both JavaScript and Typescript.