The cutest little logger you've ever seen.
Project description
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)
Built Distribution
Close
Hashes for woodchips-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62ca4a7cbd449012291577ad463bb66600c1279240115d542d851d2fe6ccc92c |
|
MD5 | ba81e23667507dd93bc0b2bcd9b74186 |
|
BLAKE2b-256 | d983787055762c947a5361bdbbc6f466d20e086640acf445fe6f285397442322 |