Documentation ¶
Index ¶
- type Logger
- func (l *Logger) AddNamespace(ns string)
- func (l *Logger) Error(message ...interface{})
- func (l *Logger) Errorf(format string, args ...interface{})
- func (l *Logger) Info(message ...interface{})
- func (l *Logger) Infof(format string, args ...interface{})
- func (l *Logger) Print(message ...interface{})
- func (l *Logger) Printf(format string, args ...interface{})
- func (l *Logger) RemoveNamespace(ns string)
- func (l *Logger) Warn(message ...interface{})
- func (l *Logger) Warnf(format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger is the struct that outputs colored log with namespace.
func WithNamespace ¶
func (*Logger) AddNamespace ¶
AddNamespace() adds more namespace string on output log.
func (*Logger) Error ¶
func (l *Logger) Error(message ...interface{})
Error() outputs error log with red color.
func (*Logger) Info ¶
func (l *Logger) Info(message ...interface{})
Info() outputs information log with green color.
func (*Logger) Print ¶
func (l *Logger) Print(message ...interface{})
Print() outputs log with default color.
func (*Logger) RemoveNamespace ¶
Click to show internal directories.
Click to hide internal directories.