log

package module
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: May 1, 2026 License: MPL-2.0 Imports: 3 Imported by: 5

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