Documentation
¶
Index ¶
- func Close()
- func Debug(message string, data map[string]interface{})
- func Error(message string, err error, data map[string]interface{})
- func FlowError(operation string, err error, data map[string]interface{})
- func FlowStart(operation string, data map[string]interface{})
- func FlowStep(step string, data map[string]interface{})
- func FlowSuccess(operation string, data map[string]interface{})
- func HashToken(token string) string
- func Info(message string, data map[string]interface{})
- func Initialize()
- func RedactSecret(secret string) string
- func RedactToken(token string) string
- func SanitizeConfig(data map[string]interface{}) map[string]interface{}
- func SanitizeURL(url string) string
- type DiagnosticLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FlowSuccess ¶
FlowSuccess logs successful completion of a flow
func HashToken ¶
HashToken creates a safe representation of a token for logging. Deprecated: Use RedactSecret instead. This function is kept for backward compatibility.
func Initialize ¶
func Initialize()
Initialize sets up the global diagnostic logger based on environment variable
func RedactSecret ¶ added in v0.0.7
RedactSecret creates a safe redacted representation of a secret for logging. This is NOT for cryptographic purposes - it's only for log identification. It shows the type of secret detected and length, without exposing the actual value.
func RedactToken ¶ added in v0.0.7
RedactToken is an alias for RedactSecret for backward compatibility. Deprecated: Use RedactSecret instead.
func SanitizeConfig ¶
SanitizeConfig removes sensitive fields from config data
func SanitizeURL ¶
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