level

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package level allows to do level filtering on go-log side

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Level

type Level uint8

Level defines a log level

const (
	// Debug level
	Debug Level = iota
	// Info level
	Info
	// Warning level
	Warning
	// Error level
	Error
	// Panic level
	Panic
)

func FromString

func FromString(s string) Level

FromString returns the level from a string

func (Level) ShouldLog

func (l Level) ShouldLog(level Level) bool

ShouldLog returns true if the level is greater than the given level

func (Level) String

func (l Level) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL