Isabella Ziccardi

31 papers A* 4A 3B 4Journal 18Unranked 1
YearRankTypeTitle / Venue / Authors
2026 J jnl
CoRR
Lelia Blin, Sylvain Gay, Isabella Ziccardi
2026 A conf
STACS
Flora Angileri, Andrea Clementi, Emanuele Natale, Michele Salvi, Isabella Ziccardi
2025 J jnl
Inf. Process. Lett.
George Giakkoupis, Volker Turau, Isabella Ziccardi
2025 J jnl
CoRR
Robin Vacus, Isabella Ziccardi
2025 A* conf
PODC
Robin Vacus, Isabella Ziccardi
2025 J jnl
Theor. Comput. Sci.
Francesco d'Amore, Isabella Ziccardi
2025 J jnl
CoRR
Flora Angileri, Andrea Clementi, Emanuele Natale, Michele Salvi, Isabella Ziccardi
2024 J jnl
Theor. Comput. Sci.
Luca Becchetti, Andrea Clementi, Francesco Pasquale, Luca Trevisan, Isabella Ziccardi
2024 A* conf
PODC
George Giakkoupis, Volker Turau, Isabella Ziccardi
2024 A conf
DISC
George Giakkoupis, Volker Turau, Isabella Ziccardi
2024 J jnl
CoRR
George Giakkoupis, Volker Turau, Isabella Ziccardi
2024 A* conf
SODA
Luca Becchetti, Andrea Clementi, Francesco Pasquale, Luca Trevisan, Robin Vacus, Isabella Ziccardi
2023 conf
SAND
Luca Becchetti, Andrea Clementi, Francesco Pasquale, Luca Trevisan, Isabella Ziccardi
2023
Isabella Ziccardi
2023 A* conf
PODC
George Giakkoupis, Isabella Ziccardi
2023 J jnl
CoRR
George Giakkoupis, Isabella Ziccardi
2023 J jnl
Random Struct. Algorithms
Luca Becchetti, Andrea Clementi, Francesco Pasquale, Luca Trevisan, Isabella Ziccardi
2023 J jnl
Algorithmica
Luciano Gualà, Stefano Leucci, Isabella Ziccardi
2023 J jnl
CoRR
Luca Becchetti, Andrea Clementi, Francesco Pasquale, Luca Trevisan, Robin Vacus, Isabella Ziccardi
2022 J jnl
CoRR
Luca Becchetti, Andrea Clementi, Francesco Pasquale, Luca Trevisan, Isabella Ziccardi
2022 B conf
LATIN
Luca Becchetti, Andrea Clementi, Riccardo Denni, Francesco Pasquale, Luca Trevisan, Isabella Ziccardi
2022 B conf
SIROCCO
Francesco d'Amore, Isabella Ziccardi
2021 A conf
ICDCS
Luca Becchetti, Andrea Clementi, Francesco Pasquale, Luca Trevisan, Isabella Ziccardi
2021 J jnl
Theor. Comput. Sci.
Andrea Clementi, Emanuele Natale, Isabella Ziccardi
2021 J jnl
CoRR
Francesco d'Amore, Isabella Ziccardi
2021 B conf
ISAAC
Luciano Gualà, Stefano Leucci, Isabella Ziccardi
2021 J jnl
CoRR
Luciano Gualà, Stefano Leucci, Isabella Ziccardi
2021 J jnl
CoRR
Luca Becchetti, Andrea Clementi, Riccardo Denni, Francesco Pasquale, Luca Trevisan, Isabella Ziccardi
2020 J jnl
CoRR
Luca Becchetti, Andrea Clementi, Francesco Pasquale, Luca Trevisan, Isabella Ziccardi
2020 B conf
SPAA
Andrea Clementi, Emanuele Natale, Isabella Ziccardi
2020 J jnl
CoRR
Andrea Clementi, Emanuele Natale, Isabella Ziccardi
redb/logging_utils.py
← Index redb/logging_utils.py python
"""
Logging utilities and shared enums for REDB.

Contains the ImportResult enum, log formatters, and logger setup functions
used across the ingestor pipeline.
"""
import logging
from logging.handlers import QueueHandler
import os
from enum import Enum


class ImportResult(Enum):
    CORRECTLY = 0
    PARTIALLY = 1
    FAILED = 2
    PENDING = 3
    SKIPPED = 4


class FileNameFormatter(logging.Formatter):
    def format(self, record):
        record.filenameinfo = getattr(record, "filenameinfo", "unknown")
        return super().format(record)


def setup_logger(log_queue, filename):
    logger = logging.getLogger(filename)
    if not logger.handlers:
        if os.getenv("SERVER_ENV") == "prod":
            logger.setLevel(logging.INFO)
        else:
            logger.setLevel(logging.DEBUG)
        handler = QueueHandler(log_queue)
        logger.addHandler(handler)
        logger.propagate = False  # Prevent propagation to parent loggers
    return logger


def logger_thread(log_queue, log_file):
    handler = logging.FileHandler(log_file)
    formatter = FileNameFormatter(
        "%(asctime)s - %(filenameinfo)s - %(levelname)s - %(message)s"
    )
    handler.setFormatter(formatter)

    while True:
        try:
            record = log_queue.get()
            if record is None:
                break
            # Format and write the log record
            message = formatter.format(record)
            handler.stream.write(message + "\n")
            handler.stream.flush()
        except Exception:
            import traceback
            import sys

            print("[ERR] Error in logger thread:", file=sys.stderr)
            traceback.print_exc(file=sys.stderr)


def setup_direct_logger(log_file, filename, pid=None):
    """Setup a logger that writes directly to the log file without using a queue."""
    # Create a unique logger name using the process ID
    logger_name = f"{filename}_{pid}" if pid else filename
    logger = logging.getLogger(logger_name)

    if not logger.handlers:
        handler = logging.FileHandler(log_file)
        formatter = logging.Formatter("%(asctime)s - %(filenameinfo)s - %(levelname)s - %(message)s")
        handler.setFormatter(formatter)
        logger.addHandler(handler)

        if os.getenv("SERVER_ENV") == "prod":
            logger.setLevel(logging.INFO)
        else:
            logger.setLevel(logging.DEBUG)

    # Add filename info to the logger's extra info
    extra = {"filenameinfo": filename}
    logger = logging.LoggerAdapter(logger, extra)

    return logger