Skip to main content

The cutest little logger you've ever seen.

Project description

Woodchips

The cutest little logger you've ever seen.

Build Status Coverage Status PyPi Licence

Showcase

All logs are made up of woodchips

I found myself using the same logging setup logic over and over in projects so I decided to pull it out into its own little package. Woodchips gives you everything you need to setup the Python logging library in your project, all without the need to import or call on the logging package making logging incredibly simple and clean.

NOTE: Woodchips currently assumes you want to print logs to console in addition to saving to a file. In the future, this may be configurable.

Install

# Install tool
pip3 install woodchips

# Install locally
make install

Usage

import woodchips


logger = woodchips.setup(
    logger_name=__name__,  # Should be the name of your module
    logger_location='my_path',
    logger_level='INFO'
)

logger.info('This is how to setup Woodchips!')
logger.warning('Pass any string to log, set the lowercase logger level on invocation')

Logger Levels

  • CRITICAL
  • ERROR
  • WARNING
  • INFO
  • DEBUG
  • NOTSET

Development

# Get a comprehensive list of development tools
make help

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

woodchips-0.1.0.tar.gz (4.8 kB view hashes)

Uploaded Source

Built Distribution

woodchips-0.1.0-py3-none-any.whl (5.4 kB view hashes)

Uploaded Python 3

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