logger

package
v0.0.0-...-36f5a7c Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package logger provides a logging interface and an implementation for logging informational messages, error messages, and warnings.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Info(args ...interface{})
	Error(args ...interface{})
	Warning(args ...interface{})
}

Logger is an interface that provides methods for logging informational messages, error messages, and warnings.

func NewLogger

func NewLogger(infoLogger, errorLogger, warningLogger *log.Logger) Logger

NewLogger creates a new logger with the provided infoLogger, errorLogger, and warningLogger.

Jump to

Keyboard shortcuts

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