The table-backed store takes a logger for generating debug log messages, at StoreConfiguration.logger . Since the library doesn't want to make any assumptions about an application's logging design or dependencies it supplies this interface, and two basic implementations that have no library dependencies. In your usage you can either use one of these two basic implementations, or supply your own. For example a Powertools Logging interface might look as follows:

function createPowertoolsEntityStoreLogger(logger: Logger): EntityStoreLogger { return { getLevelName() { return logger.getLevelName() }, debug(input: LogItemMessage, ...extraInput) { logger.debug(input, ...extraInput) } } }

Hierarchy

  • EntityStoreLogger

Methods

  • Should return 'DEBUG' if debug logging is enabled, otherwise any other uppercase string

    Returns Uppercase<string>

Generated using TypeDoc