simple_log

module
v0.0.0-...-78bd684 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2020 License: MIT

README

simple_log

simple_log 是通过golang实现一个简单的日志库,支持输出到指定的文件并且支持文件大小切割备份,也支持直接输出到控制台.

use Example

package simple_log

import (
	"github.com/Higker/simple_log/core"
	"github.com/Higker/simple_log/level"
	"testing"
)

func test(t *testing.T) {
	size := int64(100 * 1024) 
        // or NewClog()
	log := core.NewFlog(level.DEBUG, size, "D:/test", "test.log")
	log.DeBug("DeBug")
}

Directories

Path Synopsis
utils
io

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL