Discover Packages
github.com/get-eventually/go-eventually
logger
package
Version:
v0.1.0-alpha.4
Opens a new window with list of versions in this module.
Published: Nov 21, 2021
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0 modules, 0 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.
Documentation
Documentation
¶
Package logger defines a common logger interface used by the library
various components.
Debug delegates the debug log call to the provided logger, if not nil.
Error delegates the error log call to the provided logger, if not nil.
Info delegates the info log call to the provided logger, if not nil.
type Field struct {
Key string
Value interface{}
}
Field represents a structured field to be added to a Log entry.
With is an helper function to add a field in a functional way.
Logger is a structured logger capable of printing information about
the execution of a component at various levels.
Nop is a nop logger implementation.
Debug prints literally nothing.
Error prints literally nothing.
Info prints literally nothing.
Test is a logger.Logger implementation using testing.T instance.
NewTest returns a new logger using the provided testing.T instance.
Debug uses t.Logf to print a debug message.
Error uses t.Logf to print an error message.
Info uses t.Logf to print an info message.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.