Skip to main content

LogEntry

Represents a single log entry from the template build process.

LogEntryStart

Special log entry indicating the start of a build process.

LogEntryEnd

Special log entry indicating the end of a build process.

TIMER_UPDATE_INTERVAL_MS

Default minimum log level to display.

DEFAULT_LEVEL

Colored labels for each log level.

levels

Numeric ordering of log levels for comparison (lower = less severe).

set_interval

Returns a stop function that can be called to cancel the interval. Similar to JavaScript’s setInterval. Arguments:
  • func: Function to execute at each interval
  • interval: Interval duration in seconds
Returns: Stop function that can be called to cancel the interval

default_build_logger

Create a default build logger with animated timer display. Arguments:
  • min_level: Minimum log level to display (default: ‘info’)
Returns: Logger function that accepts LogEntry instances Example