Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger is a DNS middleware logger for consoles.
type Settings ¶
type Settings struct { // Writer is the writer to write logs to. // It defaults to os.Stdout. Writer io.Writer // LogRequests indicates requests should be logged. // If LogResponses is enabled as well, each request // is logged together with its matching response. LogRequests *bool // LogResponses indicates responses should be logged. // If LogRequests is enabled as well, each request // is logged together with its matching response. LogResponses *bool }
func (*Settings) SetDefaults ¶
func (s *Settings) SetDefaults()
func (*Settings) ToLinesNode ¶
Click to show internal directories.
Click to hide internal directories.