Skip to main content

Interface: StoreLogger()

An interface representing a logger function.

StoreLogger(value: string): void

Parameters

ParameterTypeDescription
valuestring

The 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

Source

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