Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface {
Printf(format string, v ...interface{})
Fatalf(format string, v ...interface{})
}
Logger defines the interface for logging used within the httpok framework. It provides methods for formatted printing and fatal errors which halt the program, ensuring consistent logging behavior across all components of httpok.
type StandardLogger ¶
type StandardLogger struct{}
basicRunLogger implements the RunLogger interface using Go's standard log package.
func (*StandardLogger) Fatalf ¶
func (l *StandardLogger) Fatalf(format string, v ...interface{})
Fatalf logs a formatted message and then terminates the program using the standard log package's Fatalf method.
func (*StandardLogger) Printf ¶
func (l *StandardLogger) Printf(format string, v ...interface{})
Printf logs a formatted message using the standard log package's Printf method.
Click to show internal directories.
Click to hide internal directories.