 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
      Index ¶
- Variables
- func CreateTestLogger() (util.Logger, error)
- func GetLevel(dflt zapcore.Level) zapcore.Level
- func InitDevLogging(lvl zapcore.Level, fns ...ListenerFunc) (*zap.Logger, error)
- func InitJSONLogging(lvl zapcore.Level) (*zap.Logger, error)
- func InitLogging(debug bool, fns ...ListenerFunc) (util.Logger, error)
- func InitSimpleLogging(lvl zapcore.Level, fns ...ListenerFunc) (*zap.Logger, error)
- type Color
- type Fn
- type ListenerFunc
- type Timer
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  
var (
	RecentLogs []*zapcore.Entry
)
    Functions ¶
func CreateTestLogger ¶
func InitDevLogging ¶ added in v1.7.12
func InitJSONLogging ¶ added in v1.7.12
func InitLogging ¶
func InitLogging(debug bool, fns ...ListenerFunc) (util.Logger, error)
func InitSimpleLogging ¶ added in v1.7.12
Types ¶
type ListenerFunc ¶ added in v1.2.16
type Timer ¶ added in v0.2.20
type Timer struct {
	Key   string      `json:"key"`
	Laps  []int       `json:"laps,omitempty"`
	Logs  []string    `json:"logs,omitempty"`
	Log   util.Logger `json:"-"`
	Timer *util.Timer `json:"-"`
	// contains filtered or unexported fields
}
    Timer lets you measure laps. It is not safe for concurrent use.
 Click to show internal directories. 
   Click to hide internal directories.