Documentation ¶
Index ¶
- Constants
- type Cutter
- type CutterOption
- type ZapCore
- func (z *ZapCore) Check(entry zapcore.Entry, check *zapcore.CheckedEntry) *zapcore.CheckedEntry
- func (z *ZapCore) Enabled(level zapcore.Level) bool
- func (z *ZapCore) Sync() error
- func (z *ZapCore) With(fields []zapcore.Field) zapcore.Core
- func (z *ZapCore) Write(entry zapcore.Entry, fields []zapcore.Field) error
- func (z *ZapCore) WriteSyncer(formats ...string) zapcore.WriteSyncer
Constants ¶
View Source
const ( ConfigEnv = "GVA_CONFIG" ConfigDefaultFile = "config.yaml" ConfigTestFile = "config.test.yaml" ConfigDebugFile = "config.debug.yaml" ConfigReleaseFile = "config.release.yaml" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cutter ¶
type Cutter struct {
// contains filtered or unexported fields
}
Cutter 实现 io.Writer 接口 用于日志切割, strings.Join([]string{director,layout, formats..., level+".log"}, os.PathSeparator)
type CutterOption ¶
type CutterOption func(*Cutter)
func CutterWithFormats ¶
func CutterWithFormats(format ...string) CutterOption
CutterWithFormats 格式化参数
type ZapCore ¶
func NewZapCore ¶
func (*ZapCore) Check ¶
func (z *ZapCore) Check(entry zapcore.Entry, check *zapcore.CheckedEntry) *zapcore.CheckedEntry
func (*ZapCore) WriteSyncer ¶
func (z *ZapCore) WriteSyncer(formats ...string) zapcore.WriteSyncer
Click to show internal directories.
Click to hide internal directories.