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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file KrypticLogger-0.4.tar.gz.
File metadata
- Download URL: KrypticLogger-0.4.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9c9dbba042fcbbf4f77241a6131f0940b66e8dd022c61446d708aab4ea74f93
|
|
| MD5 |
33e3899ee1bc50c0bd4a981fea252211
|
|
| BLAKE2b-256 |
4dc8c7a39667c065878f318d5f61f1d87b82d5e61832b468c89b9d2a2752cfe8
|
File details
Details for the file KrypticLogger-0.4-py3-none-any.whl.
File metadata
- Download URL: KrypticLogger-0.4-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb5a86651d5a4428810d7dadaede254e16effdebbc8bcdcf2e8915884f3b46e4
|
|
| MD5 |
dc464c68eeb1328a38e2e556c9680899
|
|
| BLAKE2b-256 |
646e2cafd809ddf6d994c13620ef12c926edd098cfdb67ef91205d20fe38a9bc
|