UNPKG

@zeix/ui-element

Version:

UIElement - a HTML-first library for reactive Web Components

50 lines (25 loc) 601 B
[**@zeix/ui-element**](../README.md) *** [@zeix/ui-element](../globals.md) / log # Function: log() > **log**\<`T`\>(`value`, `msg`, `level`): `T` Defined in: [src/core/util.ts:141](https://github.com/zeixcom/ui-element/blob/297c0e8e040b3880ad85a2bc873523a8086f09a3/src/core/util.ts#L141) Log a message to the console with the specified level ## Type Parameters ### T `T` ## Parameters ### value `T` value to inspect ### msg `string` message to log ### level [`LogLevel`](../type-aliases/LogLevel.md) = `LOG_DEBUG` log level ## Returns `T` - value passed through ## Since 0.7.0