Documentation
¶
Index ¶
Constants ¶
View Source
const TrafficLogFilePrefixFormat = log.TrafficLogFilePrefixFormat
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileBasedLogger ¶ added in v2.6.0
type FileBasedLogger struct {
// contains filtered or unexported fields
}
func NewFileBased ¶ added in v2.6.0
func NewFileBased() *FileBasedLogger
func (*FileBasedLogger) Close ¶ added in v2.6.0
func (l *FileBasedLogger) Close()
func (*FileBasedLogger) Log ¶ added in v2.6.0
func (l *FileBasedLogger) Log(req *http.Request, reqBody string, resp *http.Response, respBody string) error
Log takes request and response data and tries to write them into files created by this logger. Note: this method is used by the "old" rest.Client and not the one from configuration-as-code-core
func (*FileBasedLogger) LogToFiles ¶ added in v2.8.0
func (l *FileBasedLogger) LogToFiles(record lib.RequestResponse)
LogToFiles takes a record containing request and response information and tries to write it into the files created by this logger.
Click to show internal directories.
Click to hide internal directories.