# log_factory
This is a factory for setting up sensible defaults for the python logging module, including:
* configuration of format and default level
* ability to add a file handler with different log level
* helper to set the log level
* an ArgumentParser that can be inherited
## Usage
```python
import log_factory
import logging
log_factory.create()
log_factory.set_log_level(logging.DEBUG)
log_factory.add_file_handler('out.log')
logger = log_factory.get_logger('example')
logger.info('hello!')
```
## Installation
From PIP:
```bash
pip install log_factory
```
Or pulled from git master:
```bash
pip install git+https://github.com/colinp85/log_factory
```
This is a factory for setting up sensible defaults for the python logging module, including:
* configuration of format and default level
* ability to add a file handler with different log level
* helper to set the log level
* an ArgumentParser that can be inherited
## Usage
```python
import log_factory
import logging
log_factory.create()
log_factory.set_log_level(logging.DEBUG)
log_factory.add_file_handler('out.log')
logger = log_factory.get_logger('example')
logger.info('hello!')
```
## Installation
From PIP:
```bash
pip install log_factory
```
Or pulled from git master:
```bash
pip install git+https://github.com/colinp85/log_factory
```
Release files for log-factory 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| log_factory-0.1.1.tar.gz | 1.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| log_factory-0.1.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 5.6 kB
Release files / log_factory-0.1.1.tar.gz
| Download URL | log_factory-0.1.1.tar.gz |
|---|---|
| Size | 1.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5d93f8bc4a8260d5a23c23db23cd7449b79cc75e79249e3aef21154f2a8eb80b
|
|
BLAKE2b-256 checksum How to use checksums |
5362135815bb56e0695f2d5552dd9eb9f828b39299fe7380fda78ee1c7498eba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / log_factory-0.1.1-py2.py3-none-any.whl
| Download URL | log_factory-0.1.1-py2.py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
d78bd00b96a39a721ea0b4e880062641cbcb3cf1272008ceb829dea4980d822c
|
|
BLAKE2b-256 checksum How to use checksums |
d6bf090874556d01656386681661a502315714e9d8a34c4698a549673fa987c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |