Documentation ¶
Index ¶
- Constants
- func Debug(msg string, args ...zap.Field)
- func Debugf(format string, args ...interface{})
- func Error(msg string, args ...zap.Field)
- func Errorf(format string, args ...interface{})
- func Fatal(msg string, args ...zap.Field)
- func Fatalf(format string, args ...interface{})
- func Info(msg string, args ...zap.Field)
- func Infof(format string, args ...interface{})
- func Render(k string, v interface{}) zap.Field
- func Sync() error
- func Warn(msg string, args ...zap.Field)
- func Warnf(format string, args ...interface{})
- func With(k string, v interface{}) zap.Field
- func WithError(err error) zap.Field
- func WithJSONByte(k string, v []byte) zap.Field
- type Options
- func (o *Options) CloseConsoleDisplay()
- func (o *Options) Run() *Proof
- func (o *Options) SetCaller(b bool)
- func (o *Options) SetCapitalColor(b bool)
- func (o *Options) SetCompress(b bool)
- func (o *Options) SetDivision(division string)
- func (o *Options) SetEncoding(encoding string)
- func (o *Options) SetErrorFile(path string)
- func (o *Options) SetInfoFile(path string)
- func (o *Options) SetMaxAge(a int)
- func (o *Options) SetMaxBackups(n int)
- func (o *Options) SetMaxSize(size int)
- func (o *Options) SetTimeUnit(t TimeUnit)
- type Proof
- type TimeUnit
Constants ¶
View Source
const ( TimeDivision = "time" SizeDivision = "size" ConsoleEncoder = "console" JSONEncoder = "json" )
View Source
const ( Minute = "minute" Hour = "hour" Day = "day" Month = "month" Year = "year" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct { Encoding string InfoFilename string ErrorFilename string MaxSize int MaxBackups int MaxAge int Compress bool Division string LevelSeparate bool TimeUnit TimeUnit // contains filtered or unexported fields }
func (*Options) CloseConsoleDisplay ¶
func (o *Options) CloseConsoleDisplay()
func (*Options) SetCapitalColor ¶
func (*Options) SetCompress ¶
func (*Options) SetDivision ¶
func (*Options) SetEncoding ¶
func (*Options) SetErrorFile ¶
func (*Options) SetInfoFile ¶
func (*Options) SetMaxBackups ¶
func (*Options) SetMaxSize ¶
func (*Options) SetTimeUnit ¶
Click to show internal directories.
Click to hide internal directories.