package
module
Version:
v3.0.0+incompatible
Opens a new window with list of versions in this module.
Published: Sep 27, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
journal
介绍
beego日志库的一键调用
github地址为:https://github.com/Shishengbing/journal
软件说明
一行代码即可使用beego自带的logs日志库,将logs输出转到文件上,生成独立的log文件夹,并按照日期(年月日)进行分割,调用简单,可视化强
安装教程
- import 导入
gitee.com/bingcqust/journal
或github.com/Shishengbing/journal
- 在main函数中写入
journal.Start
- 在代码任意地方使用beego自带的logs.Error(),logs.Warnning()等方法
使用说明
- 源代码中配置的Warnning及以上级别的日志会被写入日志库,符合行业习惯
- 日志保存在引入文件的第一级目录
./log/日志时间/info.log
- 日志目录会自动创建,后期考虑引入conf配置文件,使得日志导出级别、保存位置、日志名称等能够自定义
参与贡献
- BingCQUST
其他
- 欢迎大家与我交流
Documentation
¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.