Files
LLeMbas-TTY/docs/config/lua/wezterm/log_error.md
T
Wez Furlong 0e9d86f9f9 lua: print -> log_info
Make print equivalent to log_info.
Improve the various log functions so that all of their arguments
are considered.

refs: https://github.com/wez/wezterm/issues/641
2021-05-03 09:19:52 -07:00

18 lines
565 B
Markdown

# `wezterm.log_error(arg, ..)`
This function logs the provided message string through wezterm's logging layer
at 'ERROR' level. 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: nightly builds only*
Now accepts multiple arguments, and those arguments can be of any type.
See also [log_info](log_info.md) and [log_warn](log_warn.md).