warp.Logger#
- class warp.Logger(*args, **kwargs)[source]#
Protocol for Warp loggers.
Any object with
debug,info,warning, anderrormethods matching these signatures can be used as a Warp logger. Frameworks register an instance viawarp.set_logger().Methods
__init__(*args, **kwargs)debug(message)Emit a debug-level message.
error(message)Emit an error-level message.
info(message)Emit an info-level message.
warning(message[, category, stacklevel])Emit a warning-level message.
- warning(message, category=None, stacklevel=1)[source]#
Emit a warning-level message.
Implementations should typically call
warnings.warn(message, category, stacklevel=stacklevel)to integrate with Python’s warning filter machinery. The providedstacklevelis already adjusted for direct use withwarnings.warn().