logger

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2025 License: MIT Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL