logutil

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger added in v0.6.0

func NewLogger(logLevel string) *slog.Logger

NewLogger returns a new logger with the given log level. If log level is empty or "silent" then the logger will be silent.

func SetupLogging

func SetupLogging(logLevel string) *slog.Logger

SetupLogging sets up logging for the application.

Types

type STUNLoggerFactory

type STUNLoggerFactory struct {
	*slog.Logger
}

func NewSTUNLoggerFactory

func NewSTUNLoggerFactory(logger *slog.Logger) *STUNLoggerFactory

func (*STUNLoggerFactory) NewLogger

func (f *STUNLoggerFactory) NewLogger(scope string) logging.LeveledLogger

Jump to

Keyboard shortcuts

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