Documentation ¶
Index ¶
- type CoreX
- func (c *CoreX) Check(ent zapcore.Entry, ce *zapcore.CheckedEntry) *zapcore.CheckedEntry
- func (c *CoreX) Enabled(level zapcore.Level) bool
- func (c *CoreX) SetLogLevelForSink(level zapcore.Level)
- func (c *CoreX) Sync() error
- func (c *CoreX) With(fields []zapcore.Field) zapcore.Core
- func (c *CoreX) Write(ent zapcore.Entry, fields []zapcore.Field) error
- type LoggerX
- type Option
- type Sink
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CoreX ¶
type CoreX struct {
// contains filtered or unexported fields
}
func (*CoreX) Check ¶
func (c *CoreX) Check(ent zapcore.Entry, ce *zapcore.CheckedEntry) *zapcore.CheckedEntry
func (*CoreX) SetLogLevelForSink ¶
SetLogLevelForSink doesn't change the log level of the core, but it changes the log level of the sink Note: it's not goroutine safe
type LoggerX ¶
func RootLogger ¶
func RootLogger() *LoggerX
type Option ¶
func WithLogLevel ¶
func WithSampling ¶
func WithSampling(c *zap.SamplingConfig) Option
Click to show internal directories.
Click to hide internal directories.