LogOutputChannel

A channel for containing log output.

To get an instance of a LogOutputChannel use createOutputChannel.

Online Documentation

Properties

Link copied to clipboard
abstract external val logLevel: LogLevel

The current log level of the channel. Defaults to editor log level.

Link copied to clipboard
abstract external val name: String

The human-readable name of this output channel.

Link copied to clipboard
abstract external val onDidChangeLogLevel: Event<LogLevel>

An Event which fires when the log level of the channel changes.

Functions

Link copied to clipboard
abstract external fun append(value: String)

Append the given value to the channel.

Link copied to clipboard
abstract external fun appendLine(value: String)

Append the given value and a line feed character to the channel.

Link copied to clipboard
abstract external fun clear()

Removes all output from the channel.

Link copied to clipboard
abstract external fun debug(message: String, vararg args: JsAny?)

Outputs the given debug message to the channel.

Link copied to clipboard
abstract external override fun dispose()

Dispose and free associated resources.

Link copied to clipboard
abstract external fun error(error: JsError, vararg args: JsAny?)

abstract external fun error(error: String, vararg args: JsAny?)

Outputs the given error or error message to the channel.

Link copied to clipboard
abstract external fun hide()

Hide this channel from the UI.

Link copied to clipboard
abstract external fun info(message: String, vararg args: JsAny?)

Outputs the given information message to the channel.

Link copied to clipboard
abstract external fun replace(value: String)

Replaces all output from the channel with the given value.

Link copied to clipboard
abstract external fun show(preserveFocus: Boolean = definedExternally)

Reveal this channel in the UI.

Link copied to clipboard
abstract external fun trace(message: String, vararg args: JsAny?)

Outputs the given trace message to the channel. Use this method to log verbose information.

Link copied to clipboard
abstract external fun warn(message: String, vararg args: JsAny?)

Outputs the given warning message to the channel.