tui.log.level
tui.log.level [NAME]
Prints the log level, or sets it. Lines below the level are not written.
Parameters
NAME:debug,info,warn,errororoff. Without it the current level is printed.
Output: the current level when called without NAME. An unknown NAME prints the valid names to stderr, returns 1 and keeps the old level.
Notes
- The start-up value is
TUI_LOG_LEVEL(defaultinfo, intui_configuration.sh). Change it later with this function: assigningTUI_LOG_LEVELaftertui.shis loaded has no effect. debuglogs every page-build step: thousands of lines on a first launch and about 12 ms per page build. Use it while developing; leave it atinfootherwise.- A dropped line costs one function call and one comparison. Nothing is formatted or written, and the log folder is not even created.
Example
tui.log.level debug # while chasing a page-build problem
tui.log.level info
See also: tui.log, tui.log.file
