Files
LLeMbas-TTY/docs/config/lua/wezterm/log_error.md
T
Ha Pham 656e62541f Update log_(error|info|warn).md to include using ShowDebugOverlay to view logs (#6316)
* Update log_error.md to include using ShowDebugOverlay to view logs

* Update log_info.md to include using ShowDebugOverlay to view logs

* Update log_warn.md to include using ShowDebugOverlay to view logs
2025-02-08 14:42:04 -07:00

26 lines
730 B
Markdown

---
title: wezterm.log_error
tags:
- utility
- log
- debug
---
# `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](../keyassignment/ShowDebugOverlay.md) 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](log_info.md) and [log_warn](log_warn.md).