Logger

Displays the contents of the WTF log file. The log file is located at ~/.config/wtf/log.txt.

To log to this file in your own modules:

require "github.com/wtfutil/wtf/logger"
logger.Log("This is a log entry")

Keyboard Commands

Arrow keys scroll through the log file.

Configuration

logger:
  enabled: true
  position:
    top: 5
    left: 4
    height: 2
    width: 1
  refreshInterval: 1

Attributes

enabled
Determines whether or not this module is executed and if its data displayed onscreen.
Note: If you’re using logging and logging is disabled, your logs will still be written to file, the widget just won’t be shown onscreen. If you have logger.Log calls in your code, regardless of this setting, they will be written out.
Values: true, false.

position
Defines where in the grid this module’s widget will be displayed.

focusChar
Define one of the number keys as a short cut key to access the widget.

refreshInterval
How often, in seconds, this module will update its data.
Values: A positive integer, 0..n.

Source Code

wtf/logger/