Documentation ¶
Index ¶
- Constants
- Variables
- func AddConfigSchema(c interface{ ... }) error
- type Logger
- func (l *Logger) Debugf(format string, args ...interface{})
- func (l *Logger) Errorf(format string, args ...interface{})
- func (l *Logger) Fatalf(format string, args ...interface{})
- func (l *Logger) HTTPHeadersRedacted(h http.Header) map[string]interface{}
- func (l *Logger) Infof(format string, args ...interface{})
- func (l *Logger) LeakSensitiveData() bool
- func (l *Logger) Logf(level logrus.Level, format string, args ...interface{})
- func (l *Logger) Logrus() *logrus.Logger
- func (l *Logger) NewEntry() *Logger
- func (l *Logger) Panicf(format string, args ...interface{})
- func (l *Logger) Printf(format string, args ...interface{})
- func (l *Logger) Tracef(format string, args ...interface{})
- func (l *Logger) UseConfig(c configurator)
- func (l *Logger) Warnf(format string, args ...interface{})
- func (l *Logger) Warningf(format string, args ...interface{})
- 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
- func (l *Logger) WithSensitiveHeaders(headers ...string) *Logger
- type Option
- func ForceFormat(format string) Option
- func ForceFormatter(formatter logrus.Formatter) Option
- func ForceLevel(level logrus.Level) Option
- func LeakSensitive() Option
- func RedactionText(text string) Option
- func ReportCaller(reportCaller bool) Option
- func UseLogger(l *logrus.Logger) Option
- func WithConfigurator(c configurator) Option
- func WithExitFunc(exitFunc func(int)) Option
- func WithHook(hook logrus.Hook) Option
- func WithSensitiveHeaders(headers ...string) Option
Constants ¶
View Source
const ConfigSchemaID = "clinia://logging-config"
Variables ¶
View Source
var ConfigSchema string
Functions ¶
Types ¶
type Logger ¶
func (*Logger) HTTPHeadersRedacted ¶
func (*Logger) LeakSensitiveData ¶
func (*Logger) WithSensitiveField ¶
func (*Logger) WithSensitiveHeaders ¶ added in v0.0.53
type Option ¶
type Option func(*options)
func ForceFormat ¶
func ForceFormatter ¶
func ForceLevel ¶
func LeakSensitive ¶
func LeakSensitive() Option
func RedactionText ¶
func ReportCaller ¶
func WithConfigurator ¶
func WithConfigurator(c configurator) Option
func WithExitFunc ¶
func WithSensitiveHeaders ¶ added in v0.0.53
Click to show internal directories.
Click to hide internal directories.