Skip to main content

Interface: StoreLogger()

An interface representing a logger function.

StoreLogger(value: string): void

An interface representing a logger function.

Parameters

ParameterTypeDescription
valuestringThe string to print. All strings will be formatted with the format [STORE => ${name}] [${type}] ${content}, where the content may have identifiers (values or names of methods) surrounded by '. For example: - [STORE => commands] [LOAD] Skipped piece '/home/user/bot/src/commands/foo.js' as 'LoaderStrategy#filter' returned 'null'. - [STORE => commands] [INSERT] Unloaded new piece 'foo' due to 'enabled' being 'false'. - [STORE => commands] [UNLOAD] Unloaded piece 'foo'.

Returns

void

Defined in

projects/pieces/src/lib/structures/Store.ts:47