Debian Codegraph @

interfaces.go

raw symbols SCIP
1 package loggscip-go gomod github.com/bep/logg . `github.com/bep/logg`/
2
3 import (
4 "fmtscip-go gomod github.com/golang/go/src go1.25 fmt/"
5 "timescip-go gomod github.com/golang/go/src go1.25 time/"
6 )
7
8 // Logger is the main interface for the logger.
9 type Loggerscip-go gomod github.com/bep/logg . `github.com/bep/logg`/Logger# interface {
10 // WithLevel returns a new entry with `level` set.
11 WithLevelscip-go gomod github.com/bep/logg . `github.com/bep/logg`/Logger#WithLevel.(Levelscip-go gomod github.com/bep/logg . `github.com/bep/logg`/Level#) *Entryscip-go gomod github.com/bep/logg . `github.com/bep/logg`/Entry#
12 }
13
14 // LevelLogger is the logger at a given level.
15 type LevelLoggerscip-go gomod github.com/bep/logg . `github.com/bep/logg`/LevelLogger# interface {
16 // Log logs a message at the given level using the string from calling s.String().
17 // Note that s.String() will not be called if the level is not enabled.
18 Logscip-go gomod github.com/bep/logg . `github.com/bep/logg`/LevelLogger#Log.(s fmtscip-go gomod github.com/golang/go/src go1.25 fmt/.Stringerscip-go gomod github.com/golang/go/src go1.25 fmt/Stringer#)
19
20 // Logf logs a message at the given level using the format and args from calling fmt.Sprintf().
21 // Note that fmt.Sprintf() will not be called if the level is not enabled.
22 Logfscip-go gomod github.com/bep/logg . `github.com/bep/logg`/LevelLogger#Logf.(format string, a ...any)
23
24 // WithLevel returns a new entry with `level` set.
25 WithLevelscip-go gomod github.com/bep/logg . `github.com/bep/logg`/LevelLogger#WithLevel.(Levelscip-go gomod github.com/bep/logg . `github.com/bep/logg`/Level#) *Entryscip-go gomod github.com/bep/logg . `github.com/bep/logg`/Entry#
26
27 // WithFields returns a new entry with the`fields` in fields set.
28 // This is a noop if LevelLogger's level is less than Logger's.
29 WithFieldsscip-go gomod github.com/bep/logg . `github.com/bep/logg`/LevelLogger#WithFields.(fields Fielderscip-go gomod github.com/bep/logg . `github.com/bep/logg`/Fielder#) *Entryscip-go gomod github.com/bep/logg . `github.com/bep/logg`/Entry#
30
31 // WithLevel returns a new entry with the field f set with value v
32 // This is a noop if LevelLogger's level is less than Logger's.
33 WithFieldscip-go gomod github.com/bep/logg . `github.com/bep/logg`/LevelLogger#WithField.(f string, v any) *Entryscip-go gomod github.com/bep/logg . `github.com/bep/logg`/Entry#
34
35 // WithDuration returns a new entry with the "duration" field set
36 // to the given duration in milliseconds.
37 // This is a noop if LevelLogger's level is less than Logger's.
38 WithDurationscip-go gomod github.com/bep/logg . `github.com/bep/logg`/LevelLogger#WithDuration.(timescip-go gomod github.com/golang/go/src go1.25 time/.Durationscip-go gomod github.com/golang/go/src go1.25 time/Duration#) *Entryscip-go gomod github.com/bep/logg . `github.com/bep/logg`/Entry#
39
40 // WithError returns a new entry with the "error" set to `err`.
41 // This is a noop if err is nil or LevelLogger's level is less than Logger's.
42 WithErrorscip-go gomod github.com/bep/logg . `github.com/bep/logg`/LevelLogger#WithError.(error) *Entryscip-go gomod github.com/bep/logg . `github.com/bep/logg`/Entry#
43 }