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) PopLogger(lvl logging.Level, s string, args ...interface{})
- func (l *Logger) Printf(format string, args ...interface{})
- func (l *Logger) ReportError(r *http.Request, code int, err error, 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
- 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 WithConfigurator(c configurator) Option
- func WithExitFunc(exitFunc func(int)) Option
- func WithHook(hook logrus.Hook) Option
Constants ¶
View Source
const ConfigSchemaID = "ory://logging-config"
Variables ¶
View Source
var ConfigSchema string
Functions ¶
func AddConfigSchema ¶ added in v0.0.276
AddConfigSchema adds the logging schema to the compiler. The interface is specified instead of `jsonschema.Compiler` to allow the use of any jsonschema library fork or version.
Types ¶
type Logger ¶ added in v0.0.125
func (*Logger) HTTPHeadersRedacted ¶ added in v0.0.268
func (*Logger) LeakSensitiveData ¶ added in v0.0.138
func (*Logger) ReportError ¶ added in v0.0.356
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 WithConfigurator ¶ added in v0.0.166
func WithConfigurator(c configurator) Option
func WithExitFunc ¶ added in v0.0.125
Click to show internal directories.
Click to hide internal directories.