Logging
HyprWin writes startup, configuration, binding, shader, and native subsystem
diagnostics to a timestamped file under logs/ beside the executable. It keeps
the five most recent run logs.
Log levels
Section titled “Log levels”| Level | Purpose |
|---|---|
trace |
Detailed execution tracing. |
debug |
Development diagnostics. |
info |
Normal lifecycle and status messages. |
warn |
Recoverable failures or degraded behavior. |
error |
Failed operations requiring attention. |
critical |
Fatal or unrecoverable failures. |
Release builds compile out trace and debug messages. Warning and higher
messages are flushed to disk immediately.
Open the log
Section titled “Open the log”Use the tray log viewer or these Lua functions:
hw.open_log()hw.sys.debug_console(true)hw.open_log() opens the current file in its associated application.
hw.sys.debug_console() queries, opens, closes, or toggles HyprWin’s live log
viewer:
hw.sys.debug_console() -- current statehw.sys.debug_console(true) -- openhw.sys.debug_console(false) -- closehw.sys.debug_console("toggle") -- toggleThe viewer receives recent buffered messages and supports search and level filtering.
Write from Lua
Section titled “Write from Lua”hw.log("info", "configuration loaded")hw.log(level, message) accepts all six levels listed above and prefixes the
message as Lua output. An unknown level currently falls back to info.
hw.log_path() returns the current absolute log file path.