Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface {
Infof(format string, v ...any)
Errorf(format string, v ...any)
Fatalf(format string, v ...any)
Printf(format string, v ...any)
Warnf(format string, v ...any)
}
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) Errorf ¶ added in v0.0.8
func (l *StandardLogger) Errorf(format string, v ...any)
Errorf logs a formatted message using the standard log package's Printf method.
func (*StandardLogger) Fatalf ¶
func (l *StandardLogger) Fatalf(format string, v ...any)
Fatalf logs a formatted message and then terminates the program using the standard log package's Fatalf method.
func (*StandardLogger) Infof ¶ added in v0.0.8
func (l *StandardLogger) Infof(format string, v ...any)
Infof logs a formatted message using the standard log package's Printf method.
func (*StandardLogger) Printf ¶
func (l *StandardLogger) Printf(format string, v ...any)
Printf logs a formatted message using the standard log package's Printf method.
func (*StandardLogger) Warnf ¶ added in v0.0.8
func (l *StandardLogger) Warnf(format string, v ...any)
Warnf logs a formatted message using the standard log package's Printf method.