Documentation ¶
Index ¶
- Constants
- func Coordination(l Logger, details trace.Details) (t trace.Coordination)
- func DatabaseSQL(l Logger, details trace.Details, opts ...option) (t trace.DatabaseSQL)
- func Discovery(l Logger, details trace.Details) (t trace.Discovery)
- func Driver(l Logger, details trace.Details) (t trace.Driver)
- func Ratelimiter(l Logger, details trace.Details) (t trace.Ratelimiter)
- func Retry(l Logger, details trace.Details) (t trace.Retry)
- func Scheme(l Logger, details trace.Details) (t trace.Scheme)
- func Scripting(l Logger, details trace.Details, opts ...option) (t trace.Scripting)
- func Secret(secret string) string
- func Table(l Logger, details trace.Details, opts ...option) (t trace.Table)
- func Topic(topicLogger Logger, details trace.Details, opts ...option) trace.Topic
- func WithLogQuery() option
- type Level
- type Logger
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func Coordination ¶ added in v3.10.0
func Coordination(l Logger, details trace.Details) (t trace.Coordination)
Coordination makes trace.Coordination with logging events from details
func DatabaseSQL ¶ added in v3.34.0
func DatabaseSQL(l Logger, details trace.Details, opts ...option) (t trace.DatabaseSQL)
DatabaseSQL makes trace.DatabaseSQL with logging events from details
func Ratelimiter ¶ added in v3.10.0
func Ratelimiter(l Logger, details trace.Details) (t trace.Ratelimiter)
Ratelimiter returns trace.Ratelimiter with logging events from details
func Scripting ¶ added in v3.10.0
Scripting returns trace.Scripting with logging events from details
func WithLogQuery ¶ added in v3.35.0
func WithLogQuery() option
Types ¶
type Level ¶ added in v3.15.0
func FromString ¶ added in v3.15.0
type Logger ¶
type Logger interface { // Tracef logs at Trace logger level using fmt formatter Tracef(format string, args ...interface{}) // Debugf logs at Debug logger level using fmt formatter Debugf(format string, args ...interface{}) // Infof logs at Info logger level using fmt formatter Infof(format string, args ...interface{}) // Warnf logs at Warn logger level using fmt formatter Warnf(format string, args ...interface{}) // Errorf logs at Error logger level using fmt formatter Errorf(format string, args ...interface{}) // Fatalf logs at Fatal logger level using fmt formatter Fatalf(format string, args ...interface{}) // WithName provide applying sub-scope of logger messages WithName(name string) Logger }
Click to show internal directories.
Click to hide internal directories.