Documentation / @tenancy-node/core / ContextualLogger
Class: ContextualLogger
Defined in: core/src/observability/contextual-logger.ts:7
Logger que agrega tenantId del contexto actual a cada línea, así cualquier log de la aplicación se puede filtrar por tenant.
Implements
Constructors
Constructor
new ContextualLogger(
inner,currentTenantId):ContextualLogger
Defined in: core/src/observability/contextual-logger.ts:13
Parameters
inner
currentTenantId
() => string | null
Returns
ContextualLogger
Properties
debug
readonlydebug:LogFn
Defined in: core/src/observability/contextual-logger.ts:8
Implementation of
error
readonlyerror:LogFn
Defined in: core/src/observability/contextual-logger.ts:11
Implementation of
info
readonlyinfo:LogFn
Defined in: core/src/observability/contextual-logger.ts:9
Implementation of
warn
readonlywarn:LogFn
Defined in: core/src/observability/contextual-logger.ts:10
Implementation of
Methods
child()
child(
bindings):Logger
Defined in: core/src/observability/contextual-logger.ts:23
Parameters
bindings
Record<string, unknown>