log

package module
v0.0.0-...-0138926 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2023 License: Apache-2.0 Imports: 6 Imported by: 4

README

logging-library

Logging library used for logging and making me happy

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartLevel

func StartLevel(level string) error

StartLevel allows for setting the log level on the fly

Types

type Logger

type Logger struct {
	Log *zap.SugaredLogger
}

func NewLogger

func NewLogger(level string) Logger

func (*Logger) GetLevel

func (L *Logger) GetLevel() (string, error)

GetLevel allows for getting the current logging level

func (*Logger) GetLogLevel

func (L *Logger) GetLogLevel(g *gin.Context)

func (*Logger) SetLevel

func (L *Logger) SetLevel(level string) error

SetLevel allows for setting the log level on the fly

func (*Logger) SetLogLevel

func (L *Logger) SetLogLevel(g *gin.Context)

Handlers for settings and getting the logs

Jump to

Keyboard shortcuts

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