Skip to main content

createLogger

@discordeno/utils


Documentation / @discordeno/utils / createLogger

Function: createLogger()

createLogger(__namedParameters): object

Defined in: packages/utils/src/logger.ts:33

Parameters

__namedParameters

logLevel

LogLevels = LogLevels.Info

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