Documentation
¶
Overview ¶
Package logger provides a centralized logging facility for gojekyll.
Index ¶
- func Debug(msg string, args ...interface{})
- func Error(msg string, args ...interface{})
- func Info(msg string, args ...interface{})
- func Label(label string, msg string, args ...interface{})
- func Printf(format string, args ...interface{})
- func Println(args ...interface{})
- func SetLevel(level Level)
- func SetQuiet(quiet bool)
- func Warn(msg string, args ...interface{})
- type Level
- type Logger
- func (l *Logger) Debug(msg string, args ...interface{})
- func (l *Logger) Error(msg string, args ...interface{})
- func (l *Logger) Info(msg string, args ...interface{})
- func (l *Logger) Label(label string, msg string, args ...interface{})
- func (l *Logger) Printf(format string, args ...interface{})
- func (l *Logger) Println(args ...interface{})
- func (l *Logger) SetErrorOutput(w io.Writer)
- func (l *Logger) SetLevel(level Level)
- func (l *Logger) SetOutput(w io.Writer)
- func (l *Logger) SetQuiet(quiet bool)
- func (l *Logger) Warn(msg string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debug ¶
func Debug(msg string, args ...interface{})
Debug logs a debug message using the default logger.
func Error ¶
func Error(msg string, args ...interface{})
Error logs an error message using the default logger.
func Info ¶
func Info(msg string, args ...interface{})
Info logs an informational message using the default logger.
func Printf ¶
func Printf(format string, args ...interface{})
Printf logs a formatted message using the default logger.
func SetLevel ¶
func SetLevel(level Level)
SetLevel sets the minimum log level on the default logger.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger is the interface for logging operations.
func (*Logger) Label ¶
Label logs a message with a label prefix (used for formatted output). The label is left-padded to maintain alignment.
func (*Logger) Println ¶
func (l *Logger) Println(args ...interface{})
Println logs arguments separated by spaces with a newline.
func (*Logger) SetErrorOutput ¶
SetErrorOutput sets the output destination for Warning and Error messages.