Documentation
¶
Index ¶
- Constants
- func FormatArgs(args ...interface{}) string
- func GetGlobalLevel() string
- func NameToLevel(level string) zapcore.Level
- func NewDefaultConfig() zap.Config
- func NewGlobalLogger(field string) *zap.SugaredLogger
- func NewLogger(level, field string) *zap.Logger
- func NewSugaredLogger(level, field string) *zap.SugaredLogger
- func SetGlobalLevel(level string)
- func TimeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder)
Constants ¶
View Source
const (
DefaultTimeFamat = "06/01/02T15:04:05.000 MST"
)
Variables ¶
This section is empty.
Functions ¶
func FormatArgs ¶
func FormatArgs(args ...interface{}) string
func GetGlobalLevel ¶
func GetGlobalLevel() string
func NameToLevel ¶
func NewDefaultConfig ¶
func NewGlobalLogger ¶
func NewGlobalLogger(field string) *zap.SugaredLogger
func NewSugaredLogger ¶
func NewSugaredLogger(level, field string) *zap.SugaredLogger
func SetGlobalLevel ¶
func SetGlobalLevel(level string)
func TimeEncoder ¶
func TimeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.