daiquiri -- Python logging setup helper
=======================================
.. image:: https://travis-ci.org/jd/daiquiri.png?branch=master
:target: https://travis-ci.org/jd/daiquiri
:alt: Build Status
.. image:: https://img.shields.io/pypi/v/daiquiri.svg
:target: https://pypi.python.org/pypi/daiquiri
:alt: Latest Version
The daiquiri library provides an easy way to configure logging. It also
provides some custom formatters and handlers.
* Free software: Apache license
* Source: https://github.com/jd/daiquiri
Usage
=====
The basic usage of daiquiri is to call the `setup` function that will setup
logging with the options passed as keyword arguments.
.. literalinclude:: examples/basic.py
While it's not mandatory to use `daiquiri.getLogger` to get a logger instead of
`logging.getLogger`, it is recommended as daiquiri provides an enhanced version
of the logger. It allows any keyword argument to be passed to the logging
method and that will be available as part of the record.
Syslog support
--------------
By passing `use_syslog=True` to `daiquiri.setup`, all messages will be logged
to syslog.
Systemd journal support
-----------------------
By passing `use_journal=True` to `daiquiri.setup`, all messages will be logged
to systemd journal. All the extra parameters passed to the logging methods will
be sent as extra keys to the logging information.
Metadata
Release files for daiquiri 0.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| daiquiri-0.0.0.tar.gz | 9.9 kB | Without provenance | Details for daiquiri-0.0.0.tar.gz |
Release files / daiquiri-0.0.0.tar.gz
| Download URL | daiquiri-0.0.0.tar.gz |
|---|---|
| Size | 9.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ed8798277a4a6d4ecefb0165e48810abbfbd5229d19801a5e4cd76cea54ecb4b
|
|
BLAKE2b-256 checksum How to use checksums |
73bbf48c640a238b5b19051fb58e80701ab9da745518a24b527859bb04b80f40
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for daiquiri 0.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.