Documentation ¶
Index ¶
- Constants
- func Close()
- type Level
- type Logger
- func (s *Logger) CleanColor() *Logger
- func (s *Logger) Close()
- func (s *Logger) Color(c TColor) *Logger
- func (s *Logger) Debugf(msg string, args ...interface{})
- func (s *Logger) Debugw(msg string, args ...interface{})
- func (s *Logger) DefaultMsg(msg string) *Logger
- func (s *Logger) Errorf(msg string, args ...interface{})
- func (s *Logger) Errorw(msg string, args ...interface{})
- func (s *Logger) Infof(msg string, args ...interface{})
- func (s *Logger) Infow(msg string, args ...interface{})
- func (s *Logger) Level(lv Level) *Logger
- func (s *Logger) Storage(lv Level) *Logger
- func (s *Logger) Warnf(msg string, args ...interface{})
- func (s *Logger) Warnw(msg string, args ...interface{})
- type Option
- type TColor
Constants ¶
View Source
const ( // DebugLevel logs are typically voluminous, and are usually disabled in // production. DebugLevel = zapcore.DebugLevel // InfoLevel is the default logging priority. InfoLevel = zapcore.InfoLevel // WarnLevel logs are more important than Info, but don't need individual // human review. WarnLevel = zapcore.WarnLevel // ErrorLevel logs are high-priority. If an application is running smoothly, // it shouldn't generate any error-level logs. ErrorLevel = zapcore.ErrorLevel )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
type Logger struct { Option // contains filtered or unexported fields }
func (*Logger) CleanColor ¶
func (*Logger) DefaultMsg ¶
Click to show internal directories.
Click to hide internal directories.