Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct {
Printer Printer
}
Adapter is a logger.Adapter implementation, which is using Printer interface. This interface is implemented for example by log.Logger from the Go standard library.
This adapter prints fields and error in logfmt format. For example:
message key=value error=message
Click to show internal directories.
Click to hide internal directories.