maeser.controllers.display_chat_log module

Contents

maeser.controllers.display_chat_log module#

This module contains functions for processing and rendering chat logs.

It includes functions to process messages, get the log file template, and display the content of a specified log file.

maeser.controllers.display_chat_log.controller(chat_sessions_manager: ChatSessionManager, branch: str, filename: str, app_name: str | None = None) str[source]#

Display the content of a specified log file.

Parameters:
  • chat_sessions_manager (ChatSessionManager) – The chat sessions manager instance.

  • branch (str) – The branch where the log file is located.

  • filename (str) – The name of the log file.

  • app_name (str) – The display name of the Maeser application.

Returns:

Rendered template with log file content.

Return type:

str

Raises:
  • FileNotFoundError – If the log file is not found.

  • yaml.YAMLError – If there is an error parsing the log file.