Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StripCtlAndExtFromUnicode ¶
StripCtlAndExtFromUnicode Advanced Unicode normalization and filtering, see http://blog.golang.org/normalization and http://godoc.org/golang.org/x/text/unicode/norm for more details.
Types ¶
type DefaultFormatter ¶
type DefaultFormatter struct {
// contains filtered or unexported fields
}
DefaultFormatter 默认日志格式化
func NewDefaultCleanFormatter ¶
func NewDefaultCleanFormatter(colorful bool) *DefaultFormatter
NewDefaultCleanFormatter create a new default LogFormatter
func NewDefaultFormatter ¶
func NewDefaultFormatter(colorful bool) *DefaultFormatter
NewDefaultFormatter create a new default LogFormatter
type JSONFormatter ¶
type JSONFormatter struct{}
JSONFormatter json输格式化
func NewJSONFormatter ¶
func NewJSONFormatter() *JSONFormatter
NewJSONFormatter create a new json LogFormatter
type JSONWithTimeFormatter ¶
type JSONWithTimeFormatter struct{}
JSONWithTimeFormatter json输格式化
func NewJSONWithTimeFormatter ¶
func NewJSONWithTimeFormatter() *JSONWithTimeFormatter
NewJSONWithTimeFormatter create a new json LogFormatter
Click to show internal directories.
Click to hide internal directories.