Documentation ¶
Index ¶
Constants ¶
View Source
const (
Pkg = "logrusPkgPrint"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MultiFormatter ¶
type MultiFormatter struct {
Name, LogName string
ColorFormatter, DefaultFormatter string
// contains filtered or unexported fields
}
MultiFormatter logrus多格式输出工具
func NewMultiFormatter ¶
func NewMultiFormatter(name string, writers ...io.Writer) *MultiFormatter
func (*MultiFormatter) Format ¶
func (format *MultiFormatter) Format(entry *logrus.Entry) ([]byte, error)
Format 自定义 log 格式
func (*MultiFormatter) Levels ¶
func (format *MultiFormatter) Levels() []logrus.Level
Click to show internal directories.
Click to hide internal directories.