We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d3e250 commit 8e21063Copy full SHA for 8e21063
journal.go
@@ -34,14 +34,14 @@ type LevelVar struct {
34
slog.LevelVar
35
}
36
37
-// Return l's level.
38
-func (l *LevelVar) Level() slog.Level {
+// Return v's level.
+func (v *LevelVar) Level() slog.Level {
39
sync.OnceFunc(func() {
40
if os.Getenv("DEBUG_INVOCATION") != "" {
41
- l.Set(slog.LevelDebug)
+ v.Set(slog.LevelDebug)
42
43
})()
44
- return l.LevelVar.Level()
+ return v.LevelVar.Level()
45
46
47
func levelToPriority(l slog.Level) syslog.Priority {
@@ -67,6 +67,7 @@ func levelToPriority(l slog.Level) syslog.Priority {
67
68
69
70
+// Options configure the Journal handler.
71
type Options struct {
72
Level slog.Leveler
73
0 commit comments