model

package
v0.0.0-...-f018bdd Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertLevel

func ConvertLevel(level zerolog.Level) string

ConvertLevel Convert a zerolog log level into the corresponding Log level

func ParseLevel

func ParseLevel(level string) (zerolog.Level, error)

ParseLevel Parse a string name of the log level and return the corresponding zerolog level

Types

type LogLevel

type LogLevel string
const (
	Trace LogLevel = "10"
	Debug LogLevel = "20"
	Info  LogLevel = "30"
	Warn  LogLevel = "40"
	Error LogLevel = "50"
	Fatal LogLevel = "60"
	Panic LogLevel = "70"
)

Represents all the Log log levels accepted Note: the Panic level has been added to cover this log level not available in Javascript

type LogOptions

type LogOptions struct {
	Level  string
	Writer io.Writer
}

Jump to

Keyboard shortcuts

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