Discover Packages
github.com/elgopher/yala
adapter
printer
package
Version:
v1.1.0
Opens a new window with list of versions in this module.
Published: Feb 25, 2023
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Adapter struct {
Printer Printer
}
Adapter is a logger.Adapter implementation, which is using Printer interface.
This adapter prints fields and error in logfmt format. For example:
message key=value error=message
Log logs the entry using Printer. Message is formatted using logfmt.
type Printer interface {
Println(skipCallerFrames int , msg string )
}
Printer is someone who can print lines.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.