logging

package
v0.0.0-...-2d2b73a Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 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 Logger

type Logger struct {
	// contains filtered or unexported fields
}

Logger is a structured logger.

func NewLogger

func NewLogger() *Logger

NewLogger creates a new Logger instance.

func (*Logger) LogError

func (l *Logger) LogError(message string, err error, context map[string]interface{}, exit bool)

LogError logs an error with a message and context.

func (*Logger) LogInfo

func (l *Logger) LogInfo(message string, context map[string]interface{})

LogInfo logs an informational message with context.

Jump to

Keyboard shortcuts

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