Documentation ¶
Index ¶
- func AddFieldKeys(keys ...string)
- func InitFileLog(filename string)
- func InitGrayLog(addr, module string)
- func InitLog(addr, module string, console bool)
- func InitLogWithField(grayArr string, fields map[string]interface{}, console bool)
- func InitLogWithFieldCustomHook(grayArr string, fields map[string]interface{}, console bool, ...)
- type LogrusFieldsHook
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFieldKeys ¶ added in v0.0.4
func AddFieldKeys(keys ...string)
func InitLogWithField ¶
Types ¶
type LogrusFieldsHook ¶ added in v0.0.4
type LogrusFieldsHook struct {
// contains filtered or unexported fields
}
func (*LogrusFieldsHook) Fire ¶ added in v0.0.4
func (hook *LogrusFieldsHook) Fire(e *logrus.Entry) error
func (*LogrusFieldsHook) Levels ¶ added in v0.0.4
func (hook *LogrusFieldsHook) Levels() []logrus.Level
Click to show internal directories.
Click to hide internal directories.