[Python] Python, want logging with log rotation and compression

Discussão em 'Python' iniciado por Stack, Fevereiro 4, 2025.

  1. Stack

    Stack Membro Participativo

    Can anyone suggest a way in python to do logging with:

    • log rotation every day
    • compression of logs when they're rotated
    • optional - delete oldest log file to preserve X MB of free space
    • optional - sftp log files to server

    Thanks for any responses, Fred

    Continue reading...

Compartilhe esta Página