示例#1
0
文件: log.go 项目: behance/go-logging
func AlwaysShowColors(tf bool) {
	log.SetFormatter(&log.TextFormatter{ForceColors: tf})
}
示例#2
0
文件: log.go 项目: behance/go-logging
func SetFormatter(formatter log.Formatter) {
	log.SetFormatter(formatter)
}