INNER CODE UNIT · Python

_setup_logging

cunarist/solie · package/solie/window/main.py:554

    async def _setup_logging(self) -> None:
        """Set up logging system."""

        def log_callback(summarization: str, log_content: str) -> None:
            self.listWidget.add_item(summarization, log_content)

        log_path = self.datapath / "+logs"
        await aiofiles.os.makedirs(log_path, exist_ok=True)
        log_handler = LogHandler(log_path, log_callback)
        getLogger().addHandler(log_handler)

    def reveal(self) -> None:
        """Show window and enable closing confirmation."""
        self.should_confirm_closing = True

        self._splash_screen.hide()
        self.board.show()
        self.gauge.show()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…