Back to Wezterm

wezterm.log_error

docs/config/lua/wezterm/log_error.md

latest662 B
Original Source

wezterm.log_error(arg, ..)

This function logs the provided message string through wezterm's logging layer at 'ERROR' level, which can be displayed via ShowDebugOverlay action. If you started wezterm from a terminal that text will print to the stdout of that terminal. If running as a daemon for the multiplexer server then it will be logged to the daemon output path.

lua
local wezterm = require 'wezterm'
wezterm.log_error 'Hello!'

{{since('20210814-124438-54e29167')}}

Now accepts multiple arguments, and those arguments can be of any type.

See also log_info and log_warn.