Documentation ¶
Overview ¶
Package chain is a logger chain. Useful if you want to print the log in local and send the log to third party at the same time.
Index ¶
- func New(logger log.Logger, loggers ...log.Logger) log.Logger
- type Chain
- func (lc *Chain) Debug(format string, args ...interface{})
- func (lc *Chain) Error(format string, args ...interface{})
- func (lc *Chain) Fatal(format string, args ...interface{})
- func (lc *Chain) Info(format string, args ...interface{})
- func (lc *Chain) Log(fields map[string]interface{})
- func (lc *Chain) Panic(format string, args ...interface{})
- func (lc *Chain) Trace(format string, args ...interface{})
- func (lc *Chain) Warn(format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Chain ¶
type Chain struct {
// contains filtered or unexported fields
}
Chain is logger chain.
Click to show internal directories.
Click to hide internal directories.