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
- 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
# log = True #Logs to terminal or cmd
# write = Ture #Writes log to file
# time = True #Adds current time to log
log.LOG_EXAMPLE("Message", log = True, write = True, time = True)
- EXAMPLE
# Example
from KrypticLogger import log
import KrypticLogger as logPath
# Setting Log Path(Optional) ***DEFAULT "log.txt"
logPath.path = "Logs/log.txt"
# Calling Logs
log.debug("Debugging Example", log = True, write = True, time = True)
log.error("Error Example", log = True, write = True, time = True, code="Error Code", critical = True)
log.info("Info Example", log = True, write = True, time = True)
log.log("Logging Example", log = True, write = True, time = True)
log.success("Success Example", log = True, write = True, time = True)
log.track("Tracking Example", log = True, write = True, time = True)
log.warn("Warning Example", log = True, write = True, time = True)
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for KrypticLogger-0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f2fbd3c0cda32a9fb09b95cd31cb5d0335e123f7848f8b8b0067d3ce5248390 |
|
MD5 | 5a3a583e72e0be79e22495dab453bee3 |
|
BLAKE2b-256 | e5e7b5ae71faac962ffed126de3b415b8ca6621952ea91539038fff88aa44c85 |