An open API service indexing awesome lists of open source software.

https://github.com/bbdshow/simplelog

golang 超轻量级 - 日志格式库,使用极简单。性能优,支持日志分级、切割、范围时间内保留
https://github.com/bbdshow/simplelog

golang high-performance lightweight logger use-easy

Last synced: about 2 months ago
JSON representation

golang 超轻量级 - 日志格式库,使用极简单。性能优,支持日志分级、切割、范围时间内保留

Awesome Lists containing this project

README

          

# simplelog

[![Build Status](https://travis-ci.org/huzhongqing/simplelog.svg?branch=master)](https://travis-ci.org/huzhongqing/simplelog)
[![Go Report Card](https://goreportcard.com/badge/github.com/huzhongqing/simplelog)](https://goreportcard.com/report/github.com/huzhongqing/simplelog)
[![codecov](https://codecov.io/gh/huzhongqing/simplelog/branch/master/graph/badge.svg)](https://codecov.io/gh/huzhongqing/simplelog)

## 特性

- 支持格式微自定义
- 不同错误级别写入不同文件夹
- 单文件容量限制,切割文件
- 文件保留时间设置,自动删除过期文件
- 捕获堆栈信息

## Usage
```
go get -u github.com/huzhongqing/simplelog

# please read example.
```