Leslie Chow Debug Kit
Project description
Leslie Chow Debug Kit
Installation
pip install lcdk
Usage
from lcdk.lcdk import lcdk as LeslieChow
DBG=LeslieChow.lcdk()
DBG.log("{}".format("MESSAGE FROM DEBUG"))
DBG.lt_green("{}".format("MESSAGE FROM DEBUG"))
Further Help
Help on module lcdk.lcdk in lcdk:
NAME lcdk.lcdk
FILE lcdk/lcdk/lcdk.py
CLASSES builtin.object Message lcdk logging.LoggerAdapter(builtin.object) StyleAdapter
class Message(__builtin__.object)
| Methods defined here:
|
| __init__(self, fmt, *args, **kwargs)
|
| __str__(self)
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables (if defined)
|
| __weakref__
| list of weak references to the object (if defined)
class StyleAdapter(logging.LoggerAdapter)
| Method resolution order:
| StyleAdapter
| logging.LoggerAdapter
| __builtin__.object
|
| Methods defined here:
|
| __init__(self, logger, extra=None)
|
| color_log(self, level, msg, color, *args, **kwargs)
|
| error(self, level, msg, *args, **kwargs)
|
| log(self, level, msg, *args, **kwargs)
|
| warning(self, level, msg, *args, **kwargs)
|
| ----------------------------------------------------------------------
| Methods inherited from logging.LoggerAdapter:
|
| critical(self, msg, *args, **kwargs)
| Delegate a critical call to the underlying logger, after adding
| contextual information from this adapter instance.
|
| debug(self, msg, *args, **kwargs)
| Delegate a debug call to the underlying logger, after adding
| contextual information from this adapter instance.
|
| exception(self, msg, *args, **kwargs)
| Delegate an exception call to the underlying logger, after adding
| contextual information from this adapter instance.
|
| info(self, msg, *args, **kwargs)
| Delegate an info call to the underlying logger, after adding
| contextual information from this adapter instance.
|
| isEnabledFor(self, level)
| See if the underlying logger is enabled for the specified level.
|
| process(self, msg, kwargs)
| Process the logging message and keyword arguments passed in to
| a logging call to insert contextual information. You can either
| manipulate the message itself, the keyword args or both. Return
| the message and kwargs modified (or not) to suit your needs.
|
| Normally, you'll only need to override this one method in a
| LoggerAdapter subclass for your specific needs.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from logging.LoggerAdapter:
|
| __dict__
| dictionary for instance variables (if defined)
|
| __weakref__
| list of weak references to the object (if defined)
class lcdk
| Methods defined here:
|
| __init__(self, **kwargs)
|
| error(self, errorMsg)
|
| getFormat(self, msg='', level='INFO')
|
| getLogLevel(self, level)
|
| log(self, msg, level='INFO')
|
| lt_cyan(self, msg, level='WARNING')
|
| lt_green(self, msg, level='WARNING')
|
| lt_purple(self, msg, level='WARNING')
|
| purple(self, msg, level='WARNING')
|
| red(self, msg, level='WARNING')
|
| trace(self, frame, event, arg='')
|
| warning(self, msg, level='WARNING')
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
lcdk-0.3.tar.gz
(4.2 kB
view details)
Built Distributions
lcdk-0.3-py3.7.egg
(7.4 kB
view details)
lcdk-0.3-py3-none-any.whl
(5.0 kB
view details)
File details
Details for the file lcdk-0.3.tar.gz
.
File metadata
- Download URL: lcdk-0.3.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8fd0cb792aa8253a51dfc83727b40117a36179cc8ed304afe9332bac2972eeff |
|
MD5 | 425b40d02f6504d76767c0f17bb18be9 |
|
BLAKE2b-256 | 5523a0554b85565ed58f48212ad611d86d949166edee0e533f92609395c2b9ac |
File details
Details for the file lcdk-0.3-py3.7.egg
.
File metadata
- Download URL: lcdk-0.3-py3.7.egg
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 218265172a00eacae220a9d384e199f263b1011d5398d14a5453cfd2792ce3a1 |
|
MD5 | 2ea0c94abcf9373454e9899f80626564 |
|
BLAKE2b-256 | 39c32575aea9e0bac64a827fed0c41a318d4bf658d98fa941a7090d452c605f6 |
File details
Details for the file lcdk-0.3-py3-none-any.whl
.
File metadata
- Download URL: lcdk-0.3-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8accfa03feaf6c8e1ce7d0f561a61ecb1de49cd28b70afa244f1e1edfd6fcc86 |
|
MD5 | 878955518ccd0c8949ed57ce7243de72 |
|
BLAKE2b-256 | 8d051dbfdb1ffb2fe3d518aa8adf4631d02b6214e2e2cc26cc4ccf4bb43533a7 |