Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateRequestID ¶
func GenerateRequestID() string
GenerateRequestID creates a new 8-character hex request ID.
func GetRequestID ¶
GetRequestID retrieves the request ID from the context. Returns empty string if not found.
func SetupBaseLogger ¶
func SetupBaseLogger()
SetupBaseLogger configures the shared logrus instance. It is safe to call multiple times; initialization happens only once.
Types ¶
type LogFormatter ¶
type LogFormatter struct{}
LogFormatter defines a custom log format for logrus. This formatter adds timestamp, level, request ID, and source location to each log entry. Format: [2025-12-23 20:14:04] [debug] [manager.go:524] | a1b2c3d4 | Use API key sk-9...0RHO for model gpt-5.2
Click to show internal directories.
Click to hide internal directories.