logging.handlers.WatchedFileHandler.emit()

emit(record)

Outputs the record to the file, but first checks to see if the file has changed. If it has, the existing stream is flushed and closed and the file opened again, before outputting the record to the file.

doc_python
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.