glogs

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package log is a global internal logger logger: this is extend package, use https://github.com/uber-go/zap

Index

Constants

This section is empty.

Variables

View Source
var (
	Sugar *zap.SugaredLogger
)

Functions

func Error

func Error(args ...interface{})

func ErrorF

func ErrorF(template string, args ...interface{})

func Info

func Info(args ...interface{})

func InfoF

func InfoF(template string, args ...interface{})

func InitLog

func InitLog()

InitLog 初始化日志文件

func Warn

func Warn(args ...interface{})

func WarnF

func WarnF(template string, args ...interface{})

Types

type Config

type Config struct {
	//Driver     string `toml:"driver"`
	Path string `toml:"path"`
	//LogLevel   string `toml:"log_level"`
	MaxSize    int `toml:"max_size"`
	MaxAge     int `toml:"max_age"`
	MaxBackups int `toml:"max_backups"`
}

Jump to

Keyboard shortcuts

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