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 hashes)