Home > @microsoft/node-core-library > ConsoleTerminalProvider > write

ConsoleTerminalProvider.write() method

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

This function gets called on every terminal provider upon every message function call on the terminal instance.

Signature:

write(data: string, severity: TerminalProviderSeverity): void;

Parameters

Parameter Type Description
data string The terminal message.
severity TerminalProviderSeverity The message severity. Terminal providers can route different kinds of messages to different streams and may choose to ignore verbose messages.

Returns:

void