package
0.0.0-20200328235230-bde19cae74ef
Repository: https://github.com/fizx/baseplate.go.git
Documentation: pkg.go.dev

# Functions

CapitalLevelEncoder adds logger level in uppercase.
Debug uses fmt.Sprint to construct and log a message.
Debugf uses fmt.Sprintf to log a templated message.
Debugw logs a message with some additional context.
DPanic uses fmt.Sprint to construct and log a message.
DPanicf uses fmt.Sprintf to log a templated message.
DPanicw logs a message with some additional context.
Error uses fmt.Sprint to construct and log a message.
Errorf uses fmt.Sprintf to log a templated message.
Errorw logs a message with some additional context.
ErrorWithRaven logs a message with some additional context, then sends the error to Sentry.
Fatal uses fmt.Sprint to construct and log a message, then calls os.Exit.
Fatalf uses fmt.Sprintf to log a templated message, then calls os.Exit.
Fatalw logs a message with some additional context, then calls os.Exit.
FullCallerEncoder serializes a caller in /full/path/to/package/file:line format.
Info uses fmt.Sprint to construct and log a message.
Infof uses fmt.Sprintf to log a templated message.
Infow logs a message with some additional context.
InitLogger provides a quick way to start or replace a logger Pass in debug as log level enables development mode (which makes DPanicLevel logs panic).
InitLoggerWithConfig provides a quick way to start or replace a logger Pass in debug as log level enables development mode (which makes DPanicLevel logs panic).
KitLogger returns a go-kit compatible logger.
NopWrapper is a Wrapper implementation that does nothing.
Panic uses fmt.Sprint to construct and log a message, then panics.
Panicf uses fmt.Sprintf to log a templated message, then panics.
Panicw logs a message with some additional context, then panics.
ShortCallerEncoder serializes a caller in package/file:line format, trimming all but the final directory from the full path.
StdWrapper wraps stdlib log package into a Wrapper.
StringToAtomicLevel converts in to a zap acceptable atomic level struct.
Sync flushes any buffered log entries.
TestWrapper is a wrapper can be used in test codes.
TimeEncoder is customized to add ts in the front.
Warn uses fmt.Sprint to construct and log a message.
Warnf uses fmt.Sprintf to log a templated message.
Warnw logs a message with some additional context.
With wraps around the underline logger's With.
ZapWrapper wraps zap log package into a Wrapper.

# Constants

Enums for Level.
Enums for Level.
Enums for Level.
Enums for Level.
Enums for Level.
Enums for Level.
RFC3339Nano is a time format for TimeEncoder.
Enums for Level.
This will have the same effect as nop but slower.

# Type aliases

KitWrapper is a type that implements go-kit/log.Logger interface with zap logger.
Level is the verbose representation of log level.
Wrapper is a simple wrapper of a logging function.