pyisyox.logging module

Logging helper functions.

The VERBOSE level (numeric 5) sits below DEBUG and is used for high-volume wire-shape diagnostics:

  • Full /api/* JSON payloads on initial load (IoXClient._get_json).

  • Raw WebSocket frames before they’re parsed (WebSocketEventStream).

DEBUG keeps the higher-signal lifecycle and one-line summaries; flip to VERBOSE only when chasing a wire-protocol bug. The level name is registered at import time so consumers like Home Assistant (which never calls enable_logging()) can still set pyisyox: verbose in configuration.yaml and see the level rendered correctly in logs.

enable_logging(level=10, add_null_handler=False, log_no_color=False)[source]

Set up the logging.

Parameters:
  • level (int)

  • add_null_handler (bool)

  • log_no_color (bool)

Return type:

None