Skip to content
Ralf Stamm edited this page Mar 24, 2016 · 5 revisions

Views Watchdog

Extends the Views module and allows to create custom lists of log entries.

Features

This module provides several fields, filter criteria, and sort criteria to build custom pages, blocks, and feeds.

Allows easily to add custom CSS classes to rows.

How to add a CSS class to rows based on type

  1. Add field Watchdog: Type and exclude it from display
  2. Enabled Output this field as a CSS class at Rewrite results
  3. Add the token of this field at Row class in style settings, e.g. dblog-[type]

How to add a CSS class to rows based on severity level

  1. Add field Watchdog: Severity level and exclude it from display
  2. Enabled Output this field as a CSS class at Rewrite results
  3. Add the token of this field at Row class in style settings, e.g. dblog-[severity]

How to display an icon instead of text based on severity level

  1. Add field Watchdog: Severity level
  2. Enabled Rewrite the output of this field at Rewrite results and enter a space character
  3. Add CSS class to rows based on severity level of a second field Watchdog: Severity level
  4. Add CSS class name at other -> CSS class, e.g. admin-dblog to display Backdrop Core icons

Attention:
Icons maybe won't display in the preview, but on the page.
Take care to use the correct tokens.