Skip to main content
All Python modules · Import and compatibility guidance

Exports

Logger

A small structured facade over an agent-scoped standard logger. Obtain this object from the owning Harnest API; its constructor includes runtime bindings. Fields (— means no declared default):

Logger.stdlib

Return the underlying standard-library logger.

Logger.bind

Return a logger carrying immutable attributes on every record.

Logger.log

Emit a structured event at an explicit standard logging level.

Logger.debug

Emit a structured debug event.

Logger.info

Emit a structured informational event.

Logger.warning

Emit a structured warning event.

Logger.error

Emit a structured error event.

Logger.critical

Emit a structured critical event.

Logger.exception

Emit an error event carrying the active exception traceback.

get_logger

Create a structured logger in Harnest’s agent logging namespace.