Skip to main content

createLogger

@discordeno/botDocs


Documentation / @discordeno/bot / createLogger

Function: createLogger()

createLogger(__namedParameters?): object

Parameters

__namedParameters?

__namedParameters.logLevel?: LogLevels

__namedParameters.name?: string

Returns

object

debug()

debug: (...args) => void

Parameters

• ...args: any[]

Returns

void

error()

error: (...args) => void

Parameters

• ...args: any[]

Returns

void

fatal()

fatal: (...args) => void

Parameters

• ...args: any[]

Returns

void

info()

info: (...args) => void

Parameters

• ...args: any[]

Returns

void

log()

log: (level, ...args) => void

Parameters

level: LogLevels

• ...args: any[]

Returns

void

setDepth()

setDepth: (level) => void

Parameters

level: LogDepth

Returns

void

setLevel()

setLevel: (level) => void

Parameters

level: LogLevels

Returns

void

warn()

warn: (...args) => void

Parameters

• ...args: any[]

Returns

void

Defined in

packages/utils/dist/types/logger.d.ts:12