Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrComponentFailure = errors.New("failed to get caller information") ErrJSONIndentFailure = errors.New("failed to indent data into JSON") ErrJSONConversion = errors.New("failed to convert input to JSON") ErrJSONUnmarshal = errors.New("failed to unmarshal JSON") ErrUnexpectedType = errors.New("unexpected data type after JSON conversion") ErrFieldTruncation = errors.New("some fields were truncated") ErrMissingLogClient = errors.New("missing log client") )
Functions ¶
func FormatDuration ¶
FormatDuration dynamically chooses the best unit for logging.
Types ¶
type ClientOption ¶
type ClientOption func(*ClientOptions)
func WithLevelKey ¶
func WithLevelKey(k Key) ClientOption
func WithMaxLen ¶
func WithMaxLen(maxLen uint) ClientOption
func WithMessageKey ¶
func WithMessageKey(k Key) ClientOption
func WithTimeKey ¶
func WithTimeKey(k Key) ClientOption
type ClientOptions ¶
func ApplyClientOptions ¶
func ApplyClientOptions(opts *ClientOptions, modifiers ...ClientOption) ClientOptions
Click to show internal directories.
Click to hide internal directories.