|
|
|
@ -8,9 +8,9 @@ import (
|
|
|
|
|
"kumoly.io/core/log/color"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func (l *Logger) M(s string, attrs ...color.Attribute) string {
|
|
|
|
|
func (l *Logger) M(s interface{}, attrs ...color.Attribute) string {
|
|
|
|
|
if !l.color {
|
|
|
|
|
return s
|
|
|
|
|
return fmt.Sprint(s)
|
|
|
|
|
}
|
|
|
|
|
style := ""
|
|
|
|
|
for i, v := range attrs {
|
|
|
|
|