Skip to main content

Python logging library

Project description

# spylogger

Generic python logging library.

  • [Installation](#installation)

  • [Usage](#usage)

  • [Authors](#authors)

<a name=”installation” id=”installation”></a>

## Installation

`bash pip install -e git+git@github.com:SPSCommerce/spylogger.git#egg=spylogger `

<a name=”usage” id=”usage”></a>

## Usage

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

### Documentation

#### 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](https://docs.python.org/2/howto/logging.html#logging-levels)

`python get_logger(name=SPY_LOG_LOGGER, log_level=SPY_LOG_LEVEL) `

<a name=”authors” id=”authors”></a>

## 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-0.0.2.tar.gz (2.8 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page