LogLevel

package
v3.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogLevel added in v3.0.1

type LogLevel int
const (
	NONE LogLevel = iota
	ERROR
	WARN
	INFO
	DEBUG
	FATAL
)

func (*LogLevel) FromString added in v3.0.1

func (l *LogLevel) FromString(levelStr string) error

FromString sets a blog.Level from a string, returning ErrInvalidLogLevel if the string is invalid. Case-insensitive. Example: "ERROR" -> ERROR, "error" -> ERROR, "Error" -> ERROR, etc.

func (LogLevel) String added in v3.0.1

func (l LogLevel) String() string

String returns the string representation of a blog.Level.

Jump to

Keyboard shortcuts

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