Metadata-Version: 2.1
Name: glib-log-bridge
Version: 0.0.1
Summary: Bridge Python and GLib logging facilities
Home-page: https://github.com/Neui/python-glib-log-bridge
Author: Neui
License: UNKNOWN
Description: Python ↔ GLib logger bridge
        ===========================
        
        This library allows you to redirect either from the [python logger facility][python-logger] to the [glib logging facility][glib-logger], or the other way around.
        
        [python-logger]: https://docs.python.org/3/library/logging.html
        [glib-logger]: https://developer.gnome.org/glib/stable/glib-Message-Logging.html
        
        **NOTE: THIS IS STILL IN DEVELOPMENT! IT MIGHT NOT WORK CORRECTLY, AND THE INTERFACE CAN CHANGE!**
        
        Quick Usage
        -----------
        
        ### GLib → Python
        ```python
        from gi.repository import GLib
        import glib_log_bridge.glib2python as glib2python
        g2plog = glib2python.GLibToPythonLogger()
        GLib.log_set_writer_func(g2plog.glibToPythonLogWriterFunc, None)
        ```
        
        ### Python → GLib
        ```python
        import logging
        import glib_log_bridge.python2glib as python2glib
        handler = python2glib.PythonToGLibLoggerHandler()
        logging.getLogger().addHandler(handler)
        # Logger to apply, logger.getLogger() does it for all messages
        ```
        
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: System :: Logging
Classifier: Typing :: Typed
Requires-Python: >=3.5
Description-Content-Type: text/markdown
