# README
logs 对github.com/sadlil/gologger的二次封装
说明
- 无需声明logger对象
- 使用方法类似slf4j的logger,格式中用{}替换传入值的内容
- 可以使用mgconfig初始化配置中,在配置文件中定义 go.log.level为 debug,info,warn,error
安装
go get -u github.com/maczh/logs
使用范例
str := "测试"
m := map[string]interface{}{"userid": 1,"username":"mmaacc"}
logs.Debug("测试日志,str:{},m:{}",str,m)
# Functions
Black is an convenient helper function to print with black foreground.
BlackString is an convenient helper function to return a string with black foreground.
Blue is an convenient helper function to print with blue foreground.
BlueString is an convenient helper function to return a string with blue foreground.
No description provided by the author
Cyan is an convenient helper function to print with cyan foreground.
CyanString is an convenient helper function to return a string with cyan foreground.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Green is an convenient helper function to print with green foreground.
GreenString is an convenient helper function to return a string with green foreground.
No description provided by the author
Magenta is an convenient helper function to print with magenta foreground.
MagentaString is an convenient helper function to return a string with magenta foreground.
New returns a newly created color object.
No description provided by the author
No description provided by the author
Red is an convenient helper function to print with red foreground.
RedString is an convenient helper function to return a string with red foreground.
Set sets the given parameters immediately.
Unset resets all escape attributes and clears the output.
No description provided by the author
White is an convenient helper function to print with white foreground.
WhiteString is an convenient helper function to return a string with white foreground.
Yellow is an convenient helper function to print with yellow foreground.
YellowString is an convenient helper function to return a string with yellow foreground.
# Constants
Background text colors.
Background text colors.
Background text colors.
Background text colors.
Background text colors.
Background text colors.
Background text colors.
Background text colors.
Base attributes.
Base attributes.
Base attributes.
No description provided by the author
Base attributes.
No description provided by the author
Base attributes.
No description provided by the author
Base attributes.
Foreground text colors.
Foreground text colors.
Foreground text colors.
Foreground text colors.
Foreground text colors.
Foreground text colors.
Foreground text colors.
Foreground text colors.
No description provided by the author
Base attributes.
Base attributes.
Base attributes.
No description provided by the author
Base attributes.
# Structs
Color defines a custom color object which is defined by SGR parameters.
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
Attribute defines a single SGR Code.