Skip to main content

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.

Metadata

Release files for easelog 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for easelog 0.0.2
File Size Uploaded
easelog-0.0.2.tar.gz 2.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for easelog 0.0.2
File Interpreter ABI Platform
easelog-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 7.0 kB

Release files / easelog-0.0.2.tar.gz

Download URL easelog-0.0.2.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
37a72afcf309c99ec015a0b4af37891e2592a707f085ba385551787717235f5d
BLAKE2b-256 checksum
How to use checksums
229fc53631338c87b3393085cbd89348bab8ee27bd4b487c45db1aa6be3ed434
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / easelog-0.0.2-py3-none-any.whl

Download URL easelog-0.0.2-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3dbab6bf9aa0edb7284dabccef707a8d74abadc7045f64c780c440f097cf9f75
BLAKE2b-256 checksum
How to use checksums
fba56e59c5cf7305a35c6405b2b22361e8802972e52ba7e7565943a7b17b03f2
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page