mirror of
https://github.com/hrfee/jfa-go.git
synced 2024-12-22 09:00:10 +00:00
parent
b29c24a405
commit
a220ba8dfb
@ -60,7 +60,12 @@ func NewLogger(out io.Writer, prefix string, flag int, color c.Attribute) (l *Lo
|
|||||||
return l
|
return l
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewEmptyLogger() (l *Logger) { l.empty = true; return }
|
func NewEmptyLogger() (l *Logger) {
|
||||||
|
l = &Logger{
|
||||||
|
empty: true,
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
func (l *Logger) Printf(format string, v ...interface{}) {
|
func (l *Logger) Printf(format string, v ...interface{}) {
|
||||||
if l.empty {
|
if l.empty {
|
||||||
|
Loading…
Reference in New Issue
Block a user