ilog

package module
v0.0.0-...-4366463 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2020 License: BSD-3-Clause Imports: 1 Imported by: 0

README

ilog

介绍

一个简单的日志库

Documentation

Index

Constants

View Source
const (
	FATAL loglevel = iota
	ERROR          // 1
	WARN           // 2
	INFO           // 3
	DEBUG          // 4
	ALL            // 5
)

Variables

This section is empty.

Functions

func Close

func Close()

Types

type Logger

type Logger interface {
	Fatal(string, ...interface{})
	Error(string, ...interface{})
	Warn(string, ...interface{})
	Info(string, ...interface{})
	Debug(string, ...interface{})
}

logger 定义所要实现的方法

func NewLogFile

func NewLogFile(levels loglevel, filename string, timeSize TimeSize) Logger

func NewLogger

func NewLogger(levels loglevel) Logger

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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