Documentation
¶
Index ¶
- func Debug(format string, v ...interface{})
- func Error(format string, v ...interface{})
- func ErrorWithStack(err error)
- func Info(format string, v ...interface{})
- func Initialize(level string)
- func InitializeWithWriter(level string, writer *os.File)
- func RequestLog(method, url, sessionID, body string)
- func RequestResponseLog(method, sessionID string, requestData, responseData string)
- func ResponseLog(statusCode int, sessionID, body string)
- func SSEEventLog(eventType, sessionID, data string)
- func Warn(format string, v ...interface{})
- type Level
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorWithStack ¶
func ErrorWithStack(err error)
ErrorWithStack logs an error with a stack trace
func Initialize ¶
func Initialize(level string)
Initialize sets up the logger with the specified level
func InitializeWithWriter ¶ added in v1.3.0
InitializeWithWriter sets up the logger with the specified level and output writer
func RequestLog ¶
func RequestLog(method, url, sessionID, body string)
RequestLog logs details of an HTTP request
func RequestResponseLog ¶
RequestResponseLog logs a combined request and response log entry
func ResponseLog ¶
ResponseLog logs details of an HTTP response
func SSEEventLog ¶
func SSEEventLog(eventType, sessionID, data string)
SSEEventLog logs details of an SSE event
Types ¶
Click to show internal directories.
Click to hide internal directories.