Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GlogLogger ¶
type GlogLogger struct {
// contains filtered or unexported fields
}
GlogLogger implements the Logger interface for logging using the glog library with configurable call depth.
func (*GlogLogger) Debugf ¶
func (logger *GlogLogger) Debugf(msg string, args ...any)
Debug logs a debug-level message with the specified format and arguments.
func (*GlogLogger) Errorf ¶
func (logger *GlogLogger) Errorf(msg string, args ...any)
Error logs an error-level message with the specified format and arguments.
func (*GlogLogger) Fatalf ¶
func (logger *GlogLogger) Fatalf(msg string, args ...any)
Fatal logs a fatal-level message with the specified format and arguments, then exits the application.
func (*GlogLogger) Infof ¶
func (logger *GlogLogger) Infof(msg string, args ...any)
Info logs an informational-level message with the specified format and optional arguments.
func (*GlogLogger) Warnf ¶
func (logger *GlogLogger) Warnf(msg string, args ...any)
Warn logs a warning-level message with the specified format and arguments.
type Logger ¶
type Logger interface {
// Debugf level logging
Debugf(msg string, args ...any)
// Infof level logging
Infof(msg string, args ...any)
// Warnf level logging
Warnf(msg string, args ...any)
// Errorf level logging
Errorf(msg string, args ...any)
// Fatalf level logging
Fatalf(msg string, args ...any)
}
func NewGlogLogger ¶
func NewGlogLogger() Logger
Click to show internal directories.
Click to hide internal directories.