Documentation ¶
Overview ¶
Package seclog holds seclog related files
Index ¶
- func AddPatterns(patterns ...string) []string
- func AddTags(tags ...string) []string
- func Debugf(format string, params ...interface{})
- func Errorf(format string, params ...interface{})
- func Infof(format string, params ...interface{})
- func SetPatterns(patterns ...string) []string
- func SetTags(tags ...string) []string
- func Trace(v interface{})
- func TraceTag(tag fmt.Stringer, v interface{})
- func TraceTagf(tag fmt.Stringer, format string, params ...interface{})
- func Tracef(format string, params ...interface{})
- func Warnf(format string, params ...interface{})
- type PatternLogger
- func (l *PatternLogger) AddPatterns(patterns ...string) []string
- func (l *PatternLogger) AddTags(tags ...string) []string
- func (l *PatternLogger) Debugf(format string, params ...interface{})
- func (l *PatternLogger) Errorf(format string, params ...interface{})
- func (l *PatternLogger) Infof(format string, params ...interface{})
- func (l *PatternLogger) IsTracing() bool
- func (l *PatternLogger) SetPatterns(patterns ...string) []string
- func (l *PatternLogger) SetTags(tags ...string) []string
- func (l *PatternLogger) Trace(v interface{})
- func (l *PatternLogger) TraceTag(tag fmt.Stringer, v interface{})
- func (l *PatternLogger) TraceTagf(tag fmt.Stringer, format string, params ...interface{})
- func (l *PatternLogger) Tracef(format string, params ...interface{})
- func (l *PatternLogger) Warnf(format string, params ...interface{})
- type TagStringer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debugf ¶
func Debugf(format string, params ...interface{})
Debugf is used to print a trace level log
Types ¶
type PatternLogger ¶
PatternLogger is a wrapper for the agent logger that add a level of filtering to trace log level
var DefaultLogger *PatternLogger
DefaultLogger default logger of this package
func (*PatternLogger) AddPatterns ¶
func (l *PatternLogger) AddPatterns(patterns ...string) []string
AddPatterns add new patterns
func (*PatternLogger) AddTags ¶
func (l *PatternLogger) AddTags(tags ...string) []string
AddTags add new tags
func (*PatternLogger) Debugf ¶
func (l *PatternLogger) Debugf(format string, params ...interface{})
Debugf is used to print a trace level log
func (*PatternLogger) Errorf ¶
func (l *PatternLogger) Errorf(format string, params ...interface{})
Errorf is used to print an error
func (*PatternLogger) Infof ¶
func (l *PatternLogger) Infof(format string, params ...interface{})
Infof is used to print an error
func (*PatternLogger) IsTracing ¶
func (l *PatternLogger) IsTracing() bool
IsTracing is used to check if TraceF would actually log
func (*PatternLogger) SetPatterns ¶
func (l *PatternLogger) SetPatterns(patterns ...string) []string
SetPatterns set patterns
func (*PatternLogger) SetTags ¶
func (l *PatternLogger) SetTags(tags ...string) []string
SetTags set tags
func (*PatternLogger) Trace ¶
func (l *PatternLogger) Trace(v interface{})
Trace is used to print a trace level log
func (*PatternLogger) TraceTag ¶
func (l *PatternLogger) TraceTag(tag fmt.Stringer, v interface{})
TraceTag is used to print a trace level log for the given tag
func (*PatternLogger) TraceTagf ¶
func (l *PatternLogger) TraceTagf(tag fmt.Stringer, format string, params ...interface{})
TraceTagf is used to print a trace level log
func (*PatternLogger) Tracef ¶
func (l *PatternLogger) Tracef(format string, params ...interface{})
Tracef is used to print a trace level log
func (*PatternLogger) Warnf ¶
func (l *PatternLogger) Warnf(format string, params ...interface{})
Warnf is used to print a warn
type TagStringer ¶
type TagStringer struct {
// contains filtered or unexported fields
}
TagStringer implements fmt.Stringer