logger holder
Project description
logger holder
>>> import logging
>>> import os
>>> SELFDIR = os.path.dirname(os.path.abspath('.')) # or : SELFDIR = os.path.dirname(os.path.abspath(__file__))
>>> PROJECTDIR = os.path.dirname(SELFDIR)
>>>
>>> from loggerholder import LoggerHolder
>>> logargs = ('logs/app.log', 'h', '%(asctime)s %(process)d %(thread)d %(levelname)s: %(message)s', logging.DEBUG, PROJECTDIR)
>>> logger = LoggerHolder.holded(logargs)
>>> print(logger)
>>>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
loggerholder-1.0.2.tar.gz
(3.5 kB
view details)
File details
Details for the file loggerholder-1.0.2.tar.gz
.
File metadata
- Download URL: loggerholder-1.0.2.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/44.1.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/2.7.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e841784fc0a9e818ca7b74f2d4da6e03ccf8f55387cba3e50888618ff80052ac |
|
MD5 | 1085f3d1a80dc3e190ea4f81c497b3bf |
|
BLAKE2b-256 | 522fba9f4fa2f29f037148ee471d4ea7f09bce24e8b38884d50c4de680959967 |