logger

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package logger provides logging utilities for gitlab-backup2s3.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(logLevel string) *slog.Logger

NewLogger creates a new logger logLevel is the level of logging Possible values of logLevel are: "debug", "info", "warn", "error" Default value is "info".

func NoLogger

func NoLogger() *slog.Logger

NoLogger creates a logger that does not log anything.

Types

type Logger

type Logger interface {
	Debug(msg string, args ...any)
	Info(msg string, args ...any)
	Warn(msg string, args ...any)
	Error(msg string, args ...any)
}

Logger is the interface for logging in gitlab-backup2s3.

Jump to

Keyboard shortcuts

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