Discover Packages
github.com/ChrisRx/jolt
package
module
Version:
v0.0.0-...-1d17ab9
Opens a new window with list of versions in this module.
Published: Nov 1, 2017
License: MIT
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 2 modules, 8 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
README
README
¶
Expand ▾
Collapse ▴
Documentation
¶
Location logs the source file and line number of the Logger.Print
caller.
If the error is wrapped by github.com/pkg/errors then then the source
file and line number will be based upon when the original error was
wrapped.
Package logs the package name with each call to
Logger.Print.
type Fields map[string ]interface{}
Fields represents key/value pairs and will be
JSON encoded when passed to Logger.Print.
A Logger provides simple, user-friendly and thread-safe logging.
DefaultLogger constructs a new *jolt.Logger with the following
defaults:
ts current UTC time (RFC3339)
loc the source file and line number of the caller
New initializes a new *jolt.Logger. By default, If no writers
are provided os.Stderr is used.
With allows default Fields to be set. If a field is specified it will
be in every invocation of Logger.Print.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.