Jump to content

Connect SuperML | Leeroopedia MCP: Equip your AI agents with best practices, code verification, and debugging knowledge. Powered by Leeroo — building Organizational Superintelligence. Contact us at founders@leeroo.com.

Implementation:SeleniumHQ Selenium Closure Formatter

From Leeroopedia
Revision as of 11:50, 16 February 2026 by Admin (talk | contribs) (Auto-imported from implementations/SeleniumHQ_Selenium_Closure_Formatter.md)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Knowledge Sources
Domains JavaScript_Atoms, Vendored_Library
Last Updated 2026-02-12 00:00 GMT

Overview

Vendored Google Closure Library module providing log record formatters used by Selenium JavaScript atoms.

Description

goog.debug.Formatter (and subclasses) is a vendored copy of the Google Closure Library module. It defines various formatters for logging, including a base Formatter class and concrete implementations: HtmlFormatter for HTML-formatted output and TextFormatter for plain text output. Formatters convert LogRecord objects into displayable strings with configurable options for absolute time, relative time, logger name, and exception text display. Selenium uses this as part of its JavaScript atom infrastructure for browser automation commands.

Usage

This module is consumed internally by Selenium's JavaScript atoms build system. It is not imported directly by end users.

Code Reference

Source Location

Key Exports

goog.provide('goog.debug.Formatter');
goog.provide('goog.debug.HtmlFormatter');
goog.provide('goog.debug.TextFormatter');
goog.provide('goog.debug.formatter');

// Base class:
goog.debug.formatter.Formatter(opt_prefix)
// Properties: appendNewline, showAbsoluteTime, showRelativeTime, showLoggerName

// Concrete formatters:
goog.debug.HtmlFormatter  // formats LogRecords as HTML
goog.debug.TextFormatter   // formats LogRecords as plain text

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment