Skip to main content

Print Logger Python print with strict structure

Project description

Print Logger

Python print with strict structure

Install

pip install print-logger

Usage

from print_logger import print_log, ERROR, INFO, WARNING

# info level
print_log('message info', INFO)
# error level
print_log({'message': 'error'}, ERROR)
# warning level
print_log('message warning', WARNING)
# custom level
print_log('message custom', 'CUSTOM')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

print_logger-1.0.3.tar.gz (2.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page