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::logusers get one fromRustdvCtx, which carries the path the phase walk derived (D7), so it cannot go stale when a component moves.
Enums§
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