omnipy.shared.protocols.hub.log
Protocols for objects that expose Omnipy logging helpers.
| CLASS | DESCRIPTION |
|---|---|
CanLog |
Protocol for objects that expose a logger and log helper. |
CanLog
Bases: Protocol
flowchart BT
omnipy.shared.protocols.hub.log.CanLog[CanLog]
click omnipy.shared.protocols.hub.log.CanLog href "" "omnipy.shared.protocols.hub.log.CanLog"
Protocol for objects that expose a logger and log helper.
| METHOD | DESCRIPTION |
|---|---|
log |
Emit a log message, optionally using an explicit event timestamp. |
| ATTRIBUTE | DESCRIPTION |
|---|---|
logger |
Return the logger bound to the concrete instance type.
TYPE:
|
Source code in src/omnipy/shared/protocols/hub/log.py
logger
property
Return the logger bound to the concrete instance type.
| RETURNS | DESCRIPTION |
|---|---|
Logger
|
Logger used by the object for Omnipy log messages.
TYPE:
|
log
Emit a log message, optionally using an explicit event timestamp.
| PARAMETER | DESCRIPTION |
|---|---|
log_msg
|
Message text to send to the logger.
TYPE:
|
level
|
Standard library logging level.
TYPE:
|
datetime_obj
|
Timestamp to attach to the record instead of wall-clock time.
TYPE:
|