semvec/pypi-packages huggingface dataset:
python-logging-json-formatter 0.1.0
A logging formatter that appends extra data as JSON, e.g. for loggly
License: BSD
Keywords: logging,json,loggly

=============================
python-logging-json-formatter
=============================

.. image:: https://img.shields.io/travis/opbeat/python-logging-json-formatter.svg
        :target: https://travis-ci.org/opbeat/python-logging-json-formatter

.. image:: https://img.shields.io/pypi/v/python-logging-json-formatter.svg
        :target: https://pypi.python.org/pypi/python-logging-json-formatter


A logging Formatter that appends extra data as JSON, e.g. for loggly

USAGE
--------

Using `dictConfig`
==================

.. code::

    import logging.config

    logging.config.dictConfig({
        'version': 1,
        'formatters': {
            'append_json': {
                '()': 'logging_json_formatter.AppendJSONFormatter',
                'format': '%(asctime)s %(name)s %(levelname)s %(funcName)s  %(filename)s:%(lineno)s %(message)s',

                # only use a specific set of keys
                'limit_keys_to': ['org_uuid', 'app_uuid'],

                # force keys that are ignored by default
                'force_keys': ('levelname', 'lineno'),
            }
        },
        'handlers': {
            'syslog': {
                'level': 'ERROR',
                'class': 'logging.handlers.SysLogHandler'
                'address': '/dev/log',
                'formatter': 'append_json'
            },
        },
    }
mezzanine2jekyll 1.0.0
Django management command to add support for exporting Mezzanine's blog posts to Jekyll post files
License: BSD

mezzanine2jekyll
================

This is a Django management command to add support for exporting
Mezzanine's blog posts to Jekyll post files.

Usage
-----

1. Install the
   `package <https://pypi.python.org/pypi/mezzanine2jekyll>`__ in your
   virtualenv:

::

    $ pip install mezzanine2jekyll

2. Add ``mezzanine2jekyll`` to your ``INSTALLED_APPS``:

.. code:: python

    INSTALLED_APPS = (
        ...
        "mezzanine2jekyll",
    )

3. Use the new management command to export:

::

    $ python manage.py mezzanine2jekyll -h
    Usage: manage.py mezzanine2jekyll [options] 

    Export Mezzanine blog posts as Jekyll files