package
1.0.4
Repository: https://github.com/obse4/gocommon.git
Documentation: pkg.go.dev

# README

goCommon logger

初始化

import "github.com/obse4/goCommon/logger"

func main() {
    logger.InitLogger(&logger.LogConfig{
		LogOut:   true,
		StayDay:  1,
	})
}

使用

import "github.com/obse4/goCommon/logger"

func main() {
    logger.Debug("Hello %s", "world")
}

配置文件

查看配置logger.LogConfig

# Packages

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

# Constants

iota=0.
ErrorLevel=iota, iota=3.
ErrorLevel=iota, iota=4.
InfoLevel=iota, iota=1.
WarnLevel=iota, iota=2.

# Structs

日志配置.

# Interfaces

No description provided by the author

# Type aliases

定义日志等级类型.
No description provided by the author