Skip to main content

KrypticLogger is a tool to help better organize and minimizing the amount of code while logging!

Project description

Kryptic Studio - KrypticLogger

KrypticLogger is a tool to help better organize and minimizing the amount of code while logging!

Installation

  1. Pip Installation
pip install KrypticLogger

OR

  1. Clone Repository to Project Folder.
$ git clone https://github.com/KrypticStudio/KrypticLogger
  1. Install requirements
$ pip install -r requirements.txt
  1. Install setup.py
$ python3 setup.py install

Usage

  1. Import KrypticLogger!
from KrypticLogger import log #as log
import KrypticLogger as logPath
  1. Call it anywhere!
#### Set path for log file
	logPath.path = "Logs/log.txt"
### Parameters
    # tag = "EXAMPLE" #Customize the notifier tag. ##ONLY AVAILABLE FOR CUSTOM
    # log = True #Logs to terminal or cmd.
    # write = False #Writes log to file
    # time = False #Adds current time to log
    # code = "0x00" #Custime code for error, organization, etc...
    # critical = False #Displays weather the message is critical or not.
log.custom(tag, message, log = True, write = False, time = False, code = "", critical = False)
  1. EXAMPLE
# Example
from KrypticLogger import log
import KrypticLogger as logPath

# Setting Log Path(Optional) ***DEFAULT "log.txt"
logPath.path = "Logs/log.txt"

#Message to be displayed...
Message = "Kryptic Studio Test. Kryptic Logger"

# Calling Logs
log.debug(Message)
log.error(Message)
log.info(Message)
log.log(Message)
log.success(Message)
log.track(Message)
log.warn(Message) 
log.custom("Custom Tag", Message)

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for KrypticLogger, version 0.4
Filename, size File type Python version Upload date Hashes
Filename, size KrypticLogger-0.4-py3-none-any.whl (3.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size KrypticLogger-0.4.tar.gz (3.0 kB) File type Source Python version None Upload date Hashes View

Supported by

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