Categorygithub.com/yuninks/loggerx
modulepackage
1.0.12
Repository: https://github.com/yuninks/loggerx.git
Documentation: pkg.go.dev

# README

简介

这个是基于原生log实现的日志存储。


log.Println("ddddd")

用法

开发计划

  1. 自动清除过期的日志文件
  2. 支持日志文件压缩
  3. 支持日志文件切割
  4. 支持日志文件归档
  5. 支持多种文件分割类型
    1. 按照时间分割
    2. 按照文件大小分割
    3. 按照日志行数分割
  6. 支持debug 模式

# Packages

No description provided by the author
No description provided by the author

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
日志保存天数.
文件路径.
错误日志是否写入info日志.
文件额外的驱动.
文件切割规则 1.文件大小 2.时间A(年/月/日/时) 3.时间B(年/月-日) 4.时间C(年-月-日-时) 5.时间D(年-月-日).
日志格式(默认json).
保存goroutine的ID信息.
是否保存gin的日志.
日志的前缀.
设置是否打印到文件.
根据文件大小切割(暂时未生效).
设置时区.
打印到控制台.
trace字段.

# Constants

不切割.
(年/月/日/时).
(年/月/日).
(年/月-日).
(年-月-日-时).
(年-月-日).

# Structs

No description provided by the author
需要实现io.Writer接口.

# Interfaces

简单使用的日志接口.

# Type aliases

No description provided by the author
No description provided by the author