Standard library / log/slog
slog.LevelVar.Level()
Return the current dynamically configured level. Expected stdout: 'INFO\n'.
Formal Syntax & Structure
go syntaxgo
func (v *LevelVar) Level() LevelReturn Value
Level
Return the current dynamically configured level.
Working Example
Example Snippetgo
package main
import ( "fmt" "log/slog")
func main() { var l slog.LevelVar; fmt.Println(l.Level()) }