Home > @uniformdev/context > createConsoleLogDrain

createConsoleLogDrain() function

Creates a new log drain that will log to the console. The log drain will only log event IDs, but is much smaller than the debug log drain.

NOTE: you probably want enableConsoleLogDrain() instead of this function.

Signature:

Parameters

<table><thead><tr><th>

Parameter

</th><th>

Type

</th><th>

Description

</th></tr></thead> <tbody><tr><td>

level

</td><td>

OutputSeverity

</td><td>

</td></tr> </tbody></table> Returns:

LogDrain