Skip to content

@ui5/logger/writers/Console ​

@ui5/logger/writers/Console ​

Standard handler for events emitted by @ui5/logger modules. Writes messages to process.stderr stream and renders a progress bar for UI5 CLI build processes.

The progress bar is only used in interactive terminals. If verbose logging is enabled, the progress bar is disabled.

Constructor ​

new @ui5/logger/writers/Console()
​

Source: logger/lib/writers/Console.js, line 21

Methods ​

disable()
​

Description: Detaches all event listeners and stops writing to output stream

Source: logger/lib/writers/Console.js, line 126

enable()
​

Description: Attaches all event listeners and starts writing to output stream

Source: logger/lib/writers/Console.js, line 110

(static) init()
​

Description: Creates a new instance and subscribes it to all events. Any currently- active console-writing writer is displaced by the ui5.log.stop-console event emitted here.

Source: logger/lib/writers/Console.js, line 478