Skip to main content

Python logging library

Project description

spylogger

Generic python logging library.

Installation

pip install spylogger

Usage

from spylogger import get_logger
logger = get_logger()
logger.info({'string': 'test Pretty info message.', 'int': 42, 'bool': True})

Environment Variables:

SPY_LOG_LOGGER

The configured logger name. Available loggers:

  • json-flat (Default)

  • json

  • ugly

SPY_LOG_LEVEL

The python log level. See the docs

get_logger(name=SPY_LOG_LOGGER, log_level=SPY_LOG_LEVEL)

Authors

See contributors section on GitHub.

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

spylogger-1.0.4.tar.gz (2.7 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