Documentation ¶
Index ¶
- func New(pretty bool, development bool, level zapcore.Level) *zap.Logger
- func NewLogFile(path string) (*os.File, error)
- func NewZapAccessLogger(syncer zapcore.WriteSyncer, development, pretty bool) *zap.Logger
- func NewZapLogger(syncer zapcore.WriteSyncer, pretty, development bool, level zapcore.Level) *zap.Logger
- func NewZapLoggerWithCore(core zapcore.Core, development bool) *zap.Logger
- func WithRequestID(reqID string) zap.Field
- func WithTraceID(traceId string) zap.Field
- func ZapJsonEncoder() zapcore.Encoder
- func ZapLogLevelFromString(logLevel string) (zapcore.Level, error)
- type BufferedLogger
- type BufferedLoggerOptions
- type RequestIDKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewZapAccessLogger ¶
func NewZapAccessLogger(syncer zapcore.WriteSyncer, development, pretty bool) *zap.Logger
func NewZapLogger ¶
func NewZapLoggerWithCore ¶
func WithRequestID ¶
func WithTraceID ¶
func ZapJsonEncoder ¶
Types ¶
type BufferedLogger ¶
func NewJSONZapBufferedLogger ¶
func NewJSONZapBufferedLogger(options BufferedLoggerOptions) (*BufferedLogger, error)
func (*BufferedLogger) Close ¶
func (f *BufferedLogger) Close() error
type BufferedLoggerOptions ¶
type RequestIDKey ¶
type RequestIDKey struct{}
Click to show internal directories.
Click to hide internal directories.