omnipy.hub.log.mixin
Shared logging mixin for Omnipy runtime and hub objects.
| CLASS | DESCRIPTION |
|---|---|
LogMixin |
Provide a module-scoped logger and timestamp-aware convenience logging. |
LogMixin
Provide a module-scoped logger and timestamp-aware convenience logging.
| METHOD | DESCRIPTION |
|---|---|
__init__ |
|
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/hub/log/mixin.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:
|
__init__
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:
|