daiquiri-rollbar
Easy way to use Rollbar with daiquiri.
The level of the messages is preserved. So logger.info('smth') will be registered as info in Rollbar. If you configure daiquiri to log messages above a certain level, only those messages will be sent to Rollbar. You can also configure the RollbarOutput to only log messages for a level that is different from the global configuration.
Exception should be logged with logger.exception. The stacktrace will then be sent to Rollbar with report_exc_info.
To use it, just add RollbarOutput to the list of daiquiri outputs and use daiquiri normally:
import logging
from daiquiri_rollbar import RollbarOutput
rollbar_output = RollbarOutput(access_token='access_token')
daiquiri.setup(
level=logging.INFO,
outputs=(rollbar_output,)
)
logger = daiquiri.getLogger(__name__)
logger.info('Test')
To log message of a certain level:
import logging
from daiquiri_rollbar import RollbarOutput
rollbar_output = RollbarOutput(access_token='access_token', level=logging.WARNING)
daiquiri.setup(
level=logging.INFO,
outputs=(rollbar_output,)
)
logger = daiquiri.getLogger(__name__)
logger.info('Test')
By default, log messages will be logged for production. To change the environment, build RollbarOutput like this:
rollbar_output = RollbarOutput(access_token='access_token', environment='development')
If you don’t pass an access token, RollbarOutput will not log anything.
Error messages from the rollbar module are not sent into Rollbar to prevent an infinite loop. They are sent to stderr instead. They will be logged by other outputs if you have any.
Changelog
0.2.1 (2017-08-15)
Improve documentation
0.2.0 (2017-08-15)
Log messages into rollbar
Metadata
Release files for daiquiri-rollbar 0.2.1
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-rollbar-0.2.1.tar.gz | 5.0 kB | Without provenance | Details for daiquiri-rollbar-0.2.1.tar.gz |
Release files / daiquiri-rollbar-0.2.1.tar.gz
| Download URL | daiquiri-rollbar-0.2.1.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b7839909613de3d6b4ce5c588e3bea06d72894714495219a0f15e865ee0af63d
|
|
BLAKE2b-256 checksum How to use checksums |
f3f7fc71e4bb95f480a6dbbda4912662a0a61b3e09ec53c92483afd59b566670
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for daiquiri-rollbar 0.2.1
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.