def close()

in ssiog/metrics_logger.py [0:0]


    def close(self):
        """
        Signals the writer thread to shut down and flushes any remaining metrics.
        """
        self._shutdown = True  # Set the shutdown flag
        self.writer_thread.join()  # Wait for the thread to finish