Metadata-Version: 1.2
Name: logging-journald
Version: 0.6.4
Summary: Pure python logging handler for writing logs to the journald using native protocol
Home-page: https://github.com/mosquito/logging-journald
Author: Dmitry Orlov
Author-email: me@mosquito.su
Maintainer: None
Maintainer-email: None
License: UNKNOWN
Description: logging-journald
        ================
        
        Pure python logging handler for writing logs to the journald using
        native protocol.
        
        ```python
        import logging
        from logging_journald import JournaldLogHandler, check_journal_stream
        
        # Use python default handler
        LOG_HANDLERS = None
        
        
        if (
            # Check if program running as systemd service
            check_journal_stream() or
            # Check if journald socket is available
            JournaldLogHandler.SOCKET_PATH.exists()
        ):
            LOG_HANDLERS = [JournaldLogHandler()]
        
        logging.basicConfig(level=logging.INFO, handlers=LOG_HANDLERS)
        logging.info("Hello logging world.")
        ```
        
Platform: UNKNOWN
Requires-Python: >=3.7,<4.0
