logger

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2026 License: MIT Imports: 8 Imported by: 1 module, 0 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

Close closes the diagnostic logger

func Debug

func Debug(message string, data map[string]interface{})

Debug logs general debug information

func Error

func Error(message string, err error, data map[string]interface{})

Error logs error messages

func FlowError

func FlowError(operation string, err error, data map[string]interface{})

FlowError logs an error in the flow

func FlowStart

func FlowStart(operation string, data map[string]interface{})

FlowStart logs the start of a credential operation

func FlowStep

func FlowStep(step string, data map[string]interface{})

FlowStep logs a step in the credential flow

func FlowSuccess

func FlowSuccess(operation string, data map[string]interface{})

FlowSuccess logs successful completion of a flow

func HashToken

func HashToken(token string) string

HashToken creates a safe hash of a token for logging

func Info

func Info(message string, data map[string]interface{})

Info logs informational messages

func Initialize

func Initialize()

Initialize sets up the global diagnostic logger based on environment variable

func SanitizeConfig

func SanitizeConfig(data map[string]interface{}) map[string]interface{}

SanitizeConfig removes sensitive fields from config data

func SanitizeURL

func SanitizeURL(url string) string

SanitizeURL removes sensitive parts from URLs for logging

Types

type DiagnosticLogger

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

DiagnosticLogger provides conditional logging for debugging git credential flows

Jump to

Keyboard shortcuts

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