JavaScriptConsole

JavaScript Console

Defines a native intrinsic for use as a JavaScript console implementation; pipes to the central Elide logging system, with each corresponding log level. See method documentation for more info.

Functions

Link copied to clipboard
abstract fun error(vararg args: Any?)

Emit an error message to the main logging system, sent to us by the JS console intrinsic; log message output is moderated via standard logging system mechanisms (i.e. on the JVM, this is SLF4J). The console.error method corresponds to the ERROR level.

Link copied to clipboard
abstract fun info(vararg args: Any?)

Emit a warning message to the main logging system, sent to us by the JS console intrinsic; log message output is moderated via standard logging system mechanisms (i.e. on the JVM, this is SLF4J). The console.info method corresponds to the INFO level.

Link copied to clipboard
abstract fun log(vararg args: Any?)

Emit a log message to the main logging system, sent to us by the JS console intrinsic; log message output is moderated via standard logging system mechanisms (i.e. on the JVM, this is SLF4J). The regular console.log method is considered a DEBUG-level call.

Link copied to clipboard
abstract fun warn(vararg args: Any?)

Emit a log message to the main logging system, sent to us by the JS console intrinsic; log message output is moderated via standard logging system mechanisms (i.e. on the JVM, this is SLF4J). The console.warn method corresponds to the WARN level.