MCPcopy Create free account
hub / github.com/algolia/algoliasearch-client-javascript / debug

Function debug

packages/logger-console/src/logger.ts:6–12  ·  view source on GitHub ↗
(message: string, args?: any | undefined)

Source from the content-addressed store, hash-verified

4export function createConsoleLogger(logLevel: LogLevelType): Logger {
5 return {
6 debug(message: string, args?: any | undefined): Readonly<Promise<void>> {
7 if (LogLevelEnum.Debug >= logLevel) {
8 console.debug(message, args);
9 }
10
11 return Promise.resolve();
12 },
13
14 info(message: string, args?: any | undefined): Readonly<Promise<void>> {
15 if (LogLevelEnum.Info >= logLevel) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected