Home > @uniformdev/context > createDebugConsoleLogDrain

createDebugConsoleLogDrain() function

Creates a new log drain that will log full debug messages to the console. The debug log drain adds significant bundle size, but is useful for debugging.

NOTE: you probably want enableDebugConsoleLogDrain() 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> <tr><td>

options

</td><td>

ConsoleDebugLogDrainOptions

</td><td>

(Optional)

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

LogDrain