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
- Pip Installation
pip install KrypticLogger
OR
- Clone Repository to Project Folder.
$ git clone https://github.com/KrypticStudio/KrypticLogger
- Install requirements
$ pip install -r requirements.txt
- Install setup.py
$ python3 setup.py install
Usage
- Import KrypticLogger!
from KrypticLogger import log #as log
import KrypticLogger as logPath
- 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)
- 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.
Source Distribution
KrypticLogger-0.4.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for KrypticLogger-0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb5a86651d5a4428810d7dadaede254e16effdebbc8bcdcf2e8915884f3b46e4 |
|
MD5 | dc464c68eeb1328a38e2e556c9680899 |
|
BLAKE2b-256 | 646e2cafd809ddf6d994c13620ef12c926edd098cfdb67ef91205d20fe38a9bc |