ConsoleTransport

About

This is a transport delegate that logs to console-like output.

API

.clear()

.clear()

On macOS, clears the terminal.


.log()

.log(info: Object)

Logs info.message using LOG EVENTopen in new window. The output type depends on the host OS:

  • macOS — Into system standard outputs
  • Windows — Into 4D debug message

In order to see the output from this transporter on macOS, you must start 4D from a terminal. From a shell, enter:

> /path/to/4D.app/Contents/MacOS/4D

Output from this transporter will appear in the terminal with full support for color. The easiest way to colorize terminal output is by using the .colorize() format (which is configured by default when using console).

In order to see the output from this transporter on Windows, you must install and run DebugViewopen in new window. Unfortunately Into system standard outputs does not currently work on Windows.

Last Updated:
Contributors: Aparajita