Page Contents

Home > @loopback/context > Context > getDebugNamespace

Context.getDebugNamespace() method

Get the debug namespace for the context class. Subclasses can override this method to supply its own namespace.

Signature:

protected getDebugNamespace(): string;

Returns:

string

Example

export class Application extends Context {
  super('application');
}

protected getDebugNamespace() {
  return 'loopback:context:application';
}