seclog

package
v0.0.0-...-9dd33c3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package seclog holds seclog related files

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPatterns

func AddPatterns(patterns ...string) []string

AddPatterns add patterns

func AddTags

func AddTags(tags ...string) []string

AddTags add tags

func Debugf

func Debugf(format string, params ...interface{})

Debugf is used to print a trace level log

func Errorf

func Errorf(format string, params ...interface{})

Errorf is used to print an error

func Infof

func Infof(format string, params ...interface{})

Infof is used to print an error

func SetPatterns

func SetPatterns(patterns ...string) []string

SetPatterns set patterns

func SetTags

func SetTags(tags ...string) []string

SetTags set tags

func Trace

func Trace(v interface{})

Trace is used to print an trace

func TraceTag

func TraceTag(tag fmt.Stringer, v interface{})

TraceTag is used to print an trace

func TraceTagf

func TraceTagf(tag fmt.Stringer, format string, params ...interface{})

TraceTagf is used to print an trace

func Tracef

func Tracef(format string, params ...interface{})

Tracef is used to print an trace

func Warnf

func Warnf(format string, params ...interface{})

Warnf is used to print a warn

Types

type PatternLogger

type PatternLogger struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

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

func (*TagStringer) String

func (t *TagStringer) String() string

String implements fmt.Stringer

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL