Function: verb-util-log-mode

verb-util-log-mode is an interactive and natively compiled function defined in verb-util.el.

Signature

(verb-util-log-mode)

Documentation

Major mode for displaying Verb logs.

Each line contains a short message representing an event that has been logged:

  The first part of each line is a number that represents what
  request has generated this event (the number identifies the request).
  If an event does not correspond to any request, "-" is used instead.
  If the first part of the line is empty, then the event corresponds to
  the same request from the previous line.

  The second part of each line represents the level at which this event
  has been logged, I for information, W for warnings and E for errors.

  The third part of each line is the message itself.

If this buffer is killed, it will be created again when the next message is logged. To turn off logging, set verb-enable-log to nil.

In addition to any hooks its parent mode special-mode might have run, this mode runs the hook verb-util-log-mode-hook, as the final or penultimate step during initialization.

Key Bindings

This command is not in any keymaps.

Source Code

;; Defined in /nix/store/8jnfn8w2mxcxbr2crbklcnija9m0zlkq-emacs-packages-deps/share/emacs/site-lisp/elpa/verb-20260818.1921/verb-util.el
(define-derived-mode verb-util-log-mode special-mode "Verb[Log]"
  "Major mode for displaying Verb logs.

Each line contains a short message representing an event that has been
logged:

  The first part of each line is a number that represents what
  request has generated this event (the number identifies the request).
  If an event does not correspond to any request, \"-\" is used instead.
  If the first part of the line is empty, then the event corresponds to
  the same request from the previous line.

  The second part of each line represents the level at which this event
  has been logged, I for information, W for warnings and E for errors.

  The third part of each line is the message itself.

If this buffer is killed, it will be created again when the next
message is logged.  To turn off logging, set `verb-enable-log' to nil."
  (font-lock-add-keywords
   nil '(;; Request number, e.g. 10.
         ("^[[:digit:]-]+\\s-"
          (0 'bold))
         ;; Log level D after request number.
         ("^[[:digit:]-]*\\s-+\\(D\\)"
          (1 'verb-util--log-debug))
         ;; Log level I after request number.
         ("^[[:digit:]-]*\\s-+\\(I\\)"
          (1 'verb-util--log-info))
         ;; Log level W after request number.
         ("^[[:digit:]-]*\\s-+\\(W\\)"
          (1 'verb-util--log-warning))
         ;; Log level E after request number.
         ("^[[:digit:]-]*\\s-+\\(E\\)"
          (1 'verb-util--log-error)))))