chai_py.cloud_logs module

class chai_py.cloud_logs.Log(**kwargs)

Bases: dict

log: str
severity: str
timestamp: int
chai_py.cloud_logs.display_logs(logs: List[chai_py.cloud_logs.Log])

Prints logs with clear separation.

Parameters

logs – Logs retrieved with get_logs()

Returns

chai_py.cloud_logs.get_logs(bot_uid: str, errors: bool = False)List[chai_py.cloud_logs.Log]

Retrieves logs for specified bot.

Logs can only be pulled by the bot’s developer.

Parameters
  • bot_uid – Bot UID

  • errors – If True, only retrieves logs with severity: Error

Returns