krypticlogger是一个工具,可以帮助更好地组织和最小化日志记录时的代码量!

KrypticLogger的Python项目详细描述


氪星工作室-氪星记录器

krypticlogger是一个工具,可以帮助更好地组织和最小化日志记录时的代码量!

安装

  1. PIP安装
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. 导入氪星记录器!
fromKrypticLoggerimportlog#as logimportKrypticLoggeraslogPath
  1. 随便叫它!
#### Set path for log filelogPath.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. 示例
# ExamplefromKrypticLoggerimportlogimportKrypticLoggeraslogPath# Setting Log Path(Optional) ***DEFAULT "log.txt"logPath.path="Logs/log.txt"#Message to be displayed...Message="Kryptic Studio Test. Kryptic Logger"# Calling Logslog.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)

贡献

欢迎拉取请求。对于重大变更,请先打开一个问题来讨论您希望更改的内容。

请确保根据需要更新测试。

许可证

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java ActiveMQ 5.9.0、Glassfish 3.1.2和MDB用于长时间的消息处理   从main调用的对象数组的Java字符串表示形式   java如何在iText 7中为泰国字母上方的双标记设置GPO   编译如果Java6工件是用Java6、7或8编译的,这有关系吗?   image Java KeyListener未检测到键盘输入   java找不到符号(构造函数)   java如何使Kafka使用者从特定主题分区读取Spring Boot   Java readLine()返回null   从CSV文件计算值时出现java系统错误   java如何避免处理程序。被调用后延迟(可运行运行)?   Java Do和While验证   java如何访问父类型的ArrayList中的子方法?   java如何使用Deepfirstsearch算法获得最高级别的搜索   xml使用SAX解析器Java正确构建字符串   Android片段中的java Toast显示空指针expn   如何在java中将多个文件合并到另一个新文件中?   java在运行时在JVisualVM中更改应用程序的标题   javajavax。命名。NoInitialContextException:需要在环境或sys中指定类名