Skip to main content

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


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

Uploaded Source

Built Distributions

lcdk-0.3-py3.7.egg (7.4 kB view hashes)

Uploaded Source

lcdk-0.3-py3-none-any.whl (5.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page