Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MultiLogHandler ¶
type MultiLogHandler struct { SubHandlers []SubLogHandler MaxLevel log.Level }
func NewMultiLogHandler ¶
func NewMultiLogHandler() (lf *MultiLogHandler)
NewMultiLogHandler provides a new instance of a multi log handler
func (*MultiLogHandler) Close ¶
func (mh *MultiLogHandler) Close()
Close closes the underying streams
func (*MultiLogHandler) HandleLog ¶
func (mh *MultiLogHandler) HandleLog(e *log.Entry) (err error)
HandleLog implements the log.Handler interface.
func (*MultiLogHandler) Open ¶
func (mh *MultiLogHandler) Open(level log.Level, filename string)
Open an (additional) log-handler at the provided level, uses cli-handler when the filename is empty, otherwise uses a text handler
func (*MultiLogHandler) OpenFromConfig ¶
func (mh *MultiLogHandler) OpenFromConfig(lc []LogConfig)
OpenFromConfig will read the logging information from a config structure passed in as parameter
Click to show internal directories.
Click to hide internal directories.