A python package for easy log formatting and productivity boost.
Project description
easelog
Description
A python package for easy log formatting and productivity boost.
Install
pip install easelog
Currently Available functions
critical(msg, *args, extras)
c(msg, *args, extras) # short name for critical
fatal(msg, *args, extras)
f(msg, *args, extras) # short name for fatal
error(msg, *args, extras)
e(msg, *args, extras) # short name for error
warning(msg, *args, extras)
w(msg, *args, extras) # short name for warning
info(msg, *args, extras)
i(msg, *args, extras) # short name for info
debug(msg, *args, extras)
d(msg, *args, extras) # short name for debug
Usage example
from easelog.easelog import *
setup(
name="MY APP",
output_fmt=["asctime", "levelname", "message"],
sep = " | ",
datefmt="%d/%m/%Y",
level=logging.CRITICAL)
critical("Critical message.")
fatal("Fatal message.")
error("Error message.")
warning("Warning message.")
info("Info message.")
debug("Debug message.")
c("Critical message.")
f("Fatal message.")
e("Error message.")
w("Warning message.")
i("Info message.")
d("Debug message.")
2020-06-20 00:36:51 | WARNING | Warning message.
2020-06-20 00:36:51 | INFO | Info message.
2020-06-20 00:36:51 | CRITICAL | Critical message.
2020-06-20 00:36:51 | CRITICAL | Fatal message.
2020-06-20 00:36:51 | ERROR | Error message.
2020-06-20 00:36:51 | WARNING | Warning message.
2020-06-20 00:36:51 | INFO | Info message.
PyPi
Author
License
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
easelog-0.0.2.tar.gz
(2.7 kB
view details)
Built Distribution
File details
Details for the file easelog-0.0.2.tar.gz
.
File metadata
- Download URL: easelog-0.0.2.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37a72afcf309c99ec015a0b4af37891e2592a707f085ba385551787717235f5d |
|
MD5 | 0aacf4ab385e5588f20fd41921185ea3 |
|
BLAKE2b-256 | 229fc53631338c87b3393085cbd89348bab8ee27bd4b487c45db1aa6be3ed434 |
File details
Details for the file easelog-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: easelog-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3dbab6bf9aa0edb7284dabccef707a8d74abadc7045f64c780c440f097cf9f75 |
|
MD5 | 6fe92aeb5b57fe9d3b3cb4f17315aabb |
|
BLAKE2b-256 | fba56e59c5cf7305a35c6405b2b22361e8802972e52ba7e7565943a7b17b03f2 |