Documentation
      ¶
    
    
  
    
  
    Index ¶
- Constants
 - func Coordination(l Logger, d trace.Detailer, opts ...Option) (t trace.Coordination)
 - func DatabaseSQL(l Logger, d trace.Detailer, opts ...Option) (t trace.DatabaseSQL)
 - func Default(w io.Writer, opts ...simpleLoggerOption) *defaultLogger
 - func Discovery(l Logger, d trace.Detailer, opts ...Option) (t trace.Discovery)
 - func Driver(l Logger, d trace.Detailer, opts ...Option) (t trace.Driver)
 - func NamesFromContext(ctx context.Context) []string
 - func Query(l Logger, d trace.Detailer, opts ...Option) (t trace.Query)
 - func Ratelimiter(l Logger, d trace.Detailer, opts ...Option) (t trace.Ratelimiter)
 - func Retry(l Logger, d trace.Detailer, opts ...Option) (t trace.Retry)
 - func Scheme(l Logger, d trace.Detailer, opts ...Option) (t trace.Scheme)
 - func Scripting(l Logger, d trace.Detailer, opts ...Option) (t trace.Scripting)
 - func Table(l Logger, d trace.Detailer, opts ...Option) (t trace.Table)
 - func Topic(l Logger, d trace.Detailer, opts ...Option) (t trace.Topic)
 - func WithColoring() simpleLoggerOption
 - func WithLevel(ctx context.Context, lvl Level) context.Context
 - func WithLogQuery() logQueryOption
 - func WithMinLevel(level Level) simpleLoggerOption
 - func WithNames(ctx context.Context, names ...string) context.Context
 - type Field
 - func Any(k string, v any) Field
 - func Bool(k string, v bool) Field
 - func Duration(k string, v time.Duration) Field
 - func Error(v error) Field
 - func Int(k string, v int) Field
 - func Int64(k string, v int64) Field
 - func NamedError(k string, v error) Field
 - func String(k, v string) Field
 - func Stringer(k string, v fmt.Stringer) Field
 - func Strings(k string, v []string) Field
 
- type Level
 - type Logger
 - type Mapper
 - type Option
 
Constants ¶
      View Source
      
  
    const ( IntType = kv.IntType Int64Type = kv.Int64Type StringType = kv.StringType BoolType = kv.BoolType DurationType = kv.DurationType StringsType = kv.StringsType ErrorType = kv.ErrorType AnyType = kv.AnyType StringerType = kv.StringerType )
      View Source
      
  
const ( TRACE = Level(iota) DEBUG INFO WARN ERROR FATAL QUIET )
Variables ¶
This section is empty.
Functions ¶
func Coordination ¶ added in v3.10.0
Coordination makes trace.Coordination with logging events from details
func DatabaseSQL ¶ added in v3.34.0
DatabaseSQL makes trace.DatabaseSQL with logging events from details
func NamesFromContext ¶ added in v3.46.0
func Ratelimiter ¶ added in v3.10.0
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 WithColoring ¶ added in v3.46.0
func WithColoring() simpleLoggerOption
func WithLogQuery ¶ added in v3.35.0
func WithLogQuery() logQueryOption
func WithMinLevel ¶ added in v3.46.0
func WithMinLevel(level Level) simpleLoggerOption
Types ¶
type Field ¶ added in v3.46.0
func NamedError ¶ added in v3.46.0
type Level ¶ added in v3.15.0
type Level int
func FromString ¶ added in v3.15.0
func LevelFromContext ¶ added in v3.46.0
 Click to show internal directories. 
   Click to hide internal directories.