log

package module
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2026 License: MPL-2.0 Imports: 3 Imported by: 10 modules, 5 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package log provides a standard logging interface.

Index

Constants

This section is empty.

Variables

View Source
var (
	GitCommit           = "NOCOMMIT"
	CortexServerVersion = "UNKNOWN"
	CortexPAPIVersion   = "UNKNOWN"
	GoVersion           = "UNKNOWN"
	BuildDate           = "UNKNOWN"
)

Functions

This section is empty.

Types

type DefaultLogger

type DefaultLogger struct {
	*log.Logger
}

DefaultLogger implements the Logger interface using Go's standard log package.

func (DefaultLogger) Debug

func (l DefaultLogger) Debug(ctx context.Context, msg string, args ...map[string]any)

func (DefaultLogger) Error

func (l DefaultLogger) Error(ctx context.Context, msg string, args ...map[string]any)

func (DefaultLogger) Info

func (l DefaultLogger) Info(ctx context.Context, msg string, args ...map[string]any)

func (DefaultLogger) Warn

func (l DefaultLogger) Warn(ctx context.Context, msg string, args ...map[string]any)

type Logger

type Logger interface {
	Debug(ctx context.Context, msg string, args ...map[string]any)
	Info(ctx context.Context, msg string, args ...map[string]any)
	Warn(ctx context.Context, msg string, args ...map[string]any)
	Error(ctx context.Context, msg string, args ...map[string]any)
}

type TflogAdapter

type TflogAdapter struct{}

func (TflogAdapter) Debug

func (TflogAdapter) Debug(ctx context.Context, msg string, args ...map[string]any)

func (TflogAdapter) Error

func (TflogAdapter) Error(ctx context.Context, msg string, args ...map[string]any)

func (TflogAdapter) Info

func (TflogAdapter) Info(ctx context.Context, msg string, args ...map[string]any)

func (TflogAdapter) Warn

func (TflogAdapter) Warn(ctx context.Context, msg string, args ...map[string]any)

Jump to

Keyboard shortcuts

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