Skip to main content

createLogger

@discordeno/utilsDocs


Documentation / @discordeno/utils / createLogger

Function: createLogger()

createLogger(__namedParameters): object

Parameters

__namedParameters = {}

__namedParameters.logLevel?: LogLevels = LogLevels.Info

__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/src/logger.ts:33