Documentation ¶
Index ¶
- type Logger
- func (l *Logger) LeakSensitiveData() bool
- func (l *Logger) Logrus() *logrus.Logger
- func (l *Logger) NewEntry() *Logger
- func (l *Logger) WithContext(ctx context.Context) *Logger
- func (l *Logger) WithError(err error) *Logger
- func (l *Logger) WithField(key string, value interface{}) *Logger
- func (l *Logger) WithFields(f logrus.Fields) *Logger
- func (l *Logger) WithRequest(r *http.Request) *Logger
- func (l *Logger) WithSensitiveField(key string, value interface{}) *Logger
- type Option
- func ForceFormat(format string) Option
- func ForceFormatter(formatter logrus.Formatter) Option
- func ForceLevel(level logrus.Level) Option
- func LeakSensitive() Option
- func ReportCaller(reportCaller bool) Option
- func UseLogger(l *logrus.Logger) Option
- func WithExitFunc(exitFunc func(int)) Option
- func WithHook(hook logrus.Hook) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶ added in v0.0.125
func (*Logger) LeakSensitiveData ¶ added in v0.0.138
func (*Logger) WithContext ¶ added in v0.0.126
func (*Logger) WithRequest ¶ added in v0.0.125
func (*Logger) WithSensitiveField ¶ added in v0.0.125
type Option ¶ added in v0.0.125
type Option func(*options)
func ForceFormat ¶ added in v0.0.125
func ForceFormatter ¶ added in v0.0.125
func ForceLevel ¶ added in v0.0.125
func LeakSensitive ¶ added in v0.0.125
func LeakSensitive() Option
func ReportCaller ¶ added in v0.0.125
func WithExitFunc ¶ added in v0.0.125
Click to show internal directories.
Click to hide internal directories.