Skip to main content

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

easelog

Author

2020 brworkit.

License

MIT License.

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

easelog-0.0.2.tar.gz (2.7 kB view hashes)

Uploaded source

Built Distribution

easelog-0.0.2-py3-none-any.whl (4.2 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page