:py:mod:`acquire.acquire.log` ============================= .. py:module:: acquire.acquire.log Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: acquire.acquire.log.DelayedFileHandler Functions ~~~~~~~~~ .. autoapisummary:: :nosignatures: acquire.acquire.log.setup_logging acquire.acquire.log.reconfigure_log_file acquire.acquire.log.new_file_handler acquire.acquire.log.get_file_handler Attributes ~~~~~~~~~~ .. autoapisummary:: acquire.acquire.log.log acquire.acquire.log.STREAM_FORMATTER acquire.acquire.log.FILE_FORMATTER .. py:data:: log .. py:data:: STREAM_FORMATTER .. py:data:: FILE_FORMATTER .. py:class:: DelayedFileHandler(filename, *args, **kwargs) Bases: :py:obj:`logging.FileHandler` A handler class which writes formatted logging records to disk files. .. py:method:: set_filename(filename) .. py:method:: set_stream(stream) .. py:method:: flush_cache() .. py:method:: emit(record) Emit a record. If the stream was not opened because 'delay' was specified in the constructor, open it before calling the superclass's emit. .. py:method:: close() Closes the stream. .. py:function:: setup_logging(logger, path, verbosity, delay=False) .. py:function:: reconfigure_log_file(logger, path, delay=False) .. py:function:: new_file_handler(path, delay=False) .. py:function:: get_file_handler(logger)