Skip to main content

KrypticLogger 是一种工具,可帮助在记录时更好地组织和最小化代码量!

项目描述

Kryptic Studio - KrypticLogger

KrypticLogger 是一种工具,可帮助在记录时更好地组织和最小化代码量!

安装

  1. 点安装
pip install KrypticLogger

或者

  1. 将存储库克隆到项目文件夹。
$ git clone https://github.com/KrypticStudio/KrypticLogger
  1. 安装要求
$ pip install -r requirements.txt
  1. 安装 setup.py
$ python3 setup.py install

用法

  1. 导入 KrypticLogger!
from KrypticLogger import log #as log
import KrypticLogger as logPath
  1. 在任何地方调用它!
#### 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
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 查看哈希

已上传 source

内置分布

KrypticLogger-0.4-py3-none-any.whl (3.9 kB 查看哈希

已上传 py3