Class: BoundLogger
core/log.BoundLogger
A BoundLogger binds a LogImplementation to a specific render of an Element.
Implements
Constructors
constructor
• new BoundLogger(impl
, renderId
, element
)
Parameters
Name | Type |
---|---|
impl | LogImplementation |
renderId | string |
element | Element <any > |
Defined in
packages/ai-jsx/src/core/log.ts:175
Methods
debug
▸ debug(obj
, msg?
): void
Parameters
Name | Type |
---|---|
obj | string | object |
msg? | string |
Returns
void
Implementation of
Logger.debug
Defined in
packages/ai-jsx/src/core/log.ts:185
error
▸ error(obj
, msg?
): void
Parameters
Name | Type |
---|---|
obj | string | object |
msg? | string |
Returns
void
Implementation of
Logger.error
Defined in
packages/ai-jsx/src/core/log.ts:182
fatal
▸ fatal(obj
, msg?
): void
Parameters
Name | Type |
---|---|
obj | string | object |
msg? | string |
Returns
void
Implementation of
Logger.fatal
Defined in
packages/ai-jsx/src/core/log.ts:181
info
▸ info(obj
, msg?
): void
Parameters
Name | Type |
---|---|
obj | string | object |
msg? | string |
Returns
void
Implementation of
Logger.info
Defined in
packages/ai-jsx/src/core/log.ts:184
setAttribute
▸ setAttribute(key
, value
): void
Parameters
Name | Type |
---|---|
key | string |
value | string |
Returns
void
Implementation of
Logger.setAttribute
Defined in
packages/ai-jsx/src/core/log.ts:187
trace
▸ trace(obj
, msg?
): void
Parameters
Name | Type |
---|---|
obj | string | object |
msg? | string |
Returns
void
Implementation of
Logger.trace
Defined in
packages/ai-jsx/src/core/log.ts:186
warn
▸ warn(obj
, msg?
): void
Parameters
Name | Type |
---|---|
obj | string | object |
msg? | string |
Returns
void
Implementation of
Logger.warn