Class: NoOpLogImplementation
core/log.NoOpLogImplementation
An implementation of LogImplementation that does nothing.
Hierarchy
↳
NoOpLogImplementation
Constructors
constructor
• new NoOpLogImplementation()
Inherited from
Properties
loggedExceptions
• Protected
Readonly
loggedExceptions: WeakMap
<object
, boolean
>
Inherited from
LogImplementation.loggedExceptions
Defined in
packages/ai-jsx/src/core/log.ts:26
Methods
log
▸ log(): void
Returns
void
Overrides
Defined in
packages/ai-jsx/src/core/log.ts:81
logException
▸ logException(element
, renderId
, exception
): void
Logs exceptions thrown during an element's render. By default invokes log
with level "error"
for the element that threw the exception and level "trace"
for elements through which the exception
propagated. This will not be invoked for ErrorBoundary
components that handle errors from their children.
Parameters
Name | Type | Description |
---|---|---|
element | Element <object > | The element from which the exception originated or through which the exception was propagated. |
renderId | string | A unique identifier associated with the rendering request for this element. |
exception | unknown | The thrown exception. |
Returns
void
Inherited from
LogImplementation.logException
Defined in
packages/ai-jsx/src/core/log.ts:52
setAttribute
▸ setAttribute(_element
, _renderId
, _key
, _value
): void
Sets an attribute to be associated with the rendering of a particular element.
Parameters
Name | Type |
---|---|
_element | Element <any > |
_renderId | string |
_key | string |
_value | string |
Returns
void
Inherited from
LogImplementation.setAttribute