LogChannel
A log channel: callable for the common case, with levels when severity matters.
Callable and levelled at once because both already existed. Sources written
against this SDK call ctx.log(...); every adapter running in Trove’s cloud
calls ctx.log.info(...). Supporting one meant rewriting the other set, for
no gain to anybody — so the type admits both and the runtimes supply both.
LogChannel(...args: unknown[]): void;A log channel: callable for the common case, with levels when severity matters.
Callable and levelled at once because both already existed. Sources written
against this SDK call ctx.log(...); every adapter running in Trove’s cloud
calls ctx.log.info(...). Supporting one meant rewriting the other set, for
no gain to anybody — so the type admits both and the runtimes supply both.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
…args | unknown[] |
Returns
Section titled “Returns”void
Methods
Section titled “Methods”error()
Section titled “error()”error(...args: unknown[]): void;Something that did stop it, or is about to.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
…args | unknown[] |
Returns
Section titled “Returns”void
info()
Section titled “info()”info(...args: unknown[]): void;Ordinary progress. The default level for a bare log(...) call.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
…args | unknown[] |
Returns
Section titled “Returns”void
warn()
Section titled “warn()”warn(...args: unknown[]): void;Something surprising that did not stop the run.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
…args | unknown[] |
Returns
Section titled “Returns”void