eslog

package module
v0.0.0-...-7c32569 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 3 Imported by: 0

README

eslog

eslog is a tiny wrapper around log/slog that provides a Fatal method

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLogLevel

func GetLogLevel(level string) slog.Level

Types

type Logger

type Logger struct {
	*slog.Logger
}

func NewJSONLogHandler

func NewJSONLogHandler(level string) Logger

func NewTextLogHandler

func NewTextLogHandler(level string) Logger

func (*Logger) Fatal

func (l *Logger) Fatal(msg string, args ...any)

Jump to

Keyboard shortcuts

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