Documentation ¶
Overview ¶
Package writer provides a writer that redirects Write requests to configured logger and level.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(writer *Writer)
Option is a function to set options for Writer.
func WithDefaultLevel ¶
WithDefaultLevel sets the default log level for Writer in case the log level cannot be extracted from the message.
func WithMsgSeparator ¶
WithMsgSeparator configures Writer to split the received text into string and log them as separate records.
func WithParseFunc ¶
func WithParseFunc(fn WriterParseFunc) Option
WithParseFunc sets the parser func.
Click to show internal directories.
Click to hide internal directories.