Documentation ¶ Index ¶ type LogFnc type Logger func NewLog(log LogFnc) *Logger func (l *Logger) AddTag(tag string) func() func (l *Logger) Clone() *Logger func (l *Logger) Log(format string, args ...interface{}) func (l *Logger) LogS(format string, args ...interface{}) func (l *Logger) SetDetail(isEnabled bool) func (l *Logger) SetTag(tag string) func() Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type LogFnc ¶ type LogFnc func(format string, args ...interface{}) var DEFAULT_SIMPLE_LOG LogFnc = func(s string, i ...interface{}) { fmt.Printf(s+"\n", i...) } type Logger ¶ type Logger struct { // contains filtered or unexported fields } func NewLog ¶ func NewLog(log LogFnc) *Logger func (*Logger) AddTag ¶ func (l *Logger) AddTag(tag string) func() func (*Logger) Clone ¶ func (l *Logger) Clone() *Logger func (*Logger) Log ¶ func (l *Logger) Log(format string, args ...interface{}) func (*Logger) LogS ¶ func (l *Logger) LogS(format string, args ...interface{}) func (*Logger) SetDetail ¶ func (l *Logger) SetDetail(isEnabled bool) func (*Logger) SetTag ¶ func (l *Logger) SetTag(tag string) func() Source Files ¶ View all Source files log.go Click to show internal directories. Click to hide internal directories.