KrypticLogger 是一种工具,可帮助在记录时更好地组织和最小化代码量!
项目描述
Kryptic Studio - KrypticLogger
KrypticLogger 是一种工具,可帮助在记录时更好地组织和最小化代码量!
安装
- 点安装
pip install KrypticLogger
或者
- 将存储库克隆到项目文件夹。
$ git clone https://github.com/KrypticStudio/KrypticLogger
- 安装要求
$ pip install -r requirements.txt
- 安装 setup.py
$ python3 setup.py install
用法
- 导入 KrypticLogger!
from KrypticLogger import log #as log
import KrypticLogger as logPath
- 在任何地方调用它!
#### 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
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)
贡献
欢迎请求请求。对于重大更改,请先打开一个问题讨论您想要更改的内容。
请确保根据需要更新测试。
执照
项目详情
下载文件
下载适用于您平台的文件。如果您不确定要选择哪个,请了解有关安装包的更多信息。
源分布
KrypticLogger-0.4.tar.gz
(3.0 kB
查看哈希)
内置分布
KrypticLogger-0.4-py3-none-any.whl
(3.9 kB
查看哈希)
关
KrypticLogger -0.4.tar.gz 的哈希值
| 算法 | 哈希摘要 | |
|---|---|---|
| SHA256 | f9c9dbba042fcbbf4f77241a6131f0940b66e8dd022c61446d708aab4ea74f93 |
|
| MD5 | 33e3899ee1bc50c0bd4a981fea252211 |
|
| 布莱克2-256 | 4dc8c7a39667c065878f318d5f61f1d87b82d5e61832b468c89b9d2a2752cfe8 |
关
KrypticLogger -0.4-py3-none-any.whl 的哈希值
| 算法 | 哈希摘要 | |
|---|---|---|
| SHA256 | bb5a86651d5a4428810d7dadaede254e16effdebbc8bcdcf2e8915884f3b46e4 |
|
| MD5 | dc464c68eeb1328a38e2e556c9680899 |
|
| 布莱克2-256 | 646e2cafd809ddf6d994c13620ef12c926edd098cfdb67ef91205d20fe38a9bc |