Skip to main content

Module log

Module log 

Source
Expand description

Sim-time-stamped logging in the book’s format: 2.00ns INFO ... (design-doc OQ-8: the tracing mapping is deferred; this minimal zero-dependency logger reproduces the output format the book teaches).

Structs§

Logger
A named logger: the pyuvm self.logger. The path is not typed by hand — crate::log users get one from RustdvCtx, which carries the path the phase walk derived (D7), so it cannot go stale when a component moves.

Enums§

Level

Functions§

add_file_for
Send this component’s subtree to a file as well — the port of add_logging_handler_hier(logging.FileHandler(...)).
critical
debug
error
info
log
log_to_file
Also write every printed message to path (port of logging.FileHandler; mode “w”). Pass append=true for mode “a”.
remove_log_file
Stop writing to the global log file (port of remove_logging_handler).
reset_config
Drop all logging configuration: levels, handlers, console suppression.
set_console_for
Turn console output on or off for a subtree — the port of remove_streaming_handler_hier() (and its undo).
set_level
set_level_for
Set the level for a component path and everything under it (port of set_logging_level_hier; a leaf path is set_logging_level).
warning