Documentation
¶
Index ¶
- func Close() error
- func Debug(format string, args ...interface{})
- func DisableConsoleOutput()
- func EnableConsoleOutput()
- func Error(format string, args ...interface{})
- func Info(format string, args ...interface{})
- func SetPrefix(prefix string)
- func Warn(format string, args ...interface{})
- type Logger
- func (l *Logger) Close() error
- func (l *Logger) Debug(format string, args ...interface{})
- func (l *Logger) DisableConsoleOutput()
- func (l *Logger) EnableConsoleOutput()
- func (l *Logger) Error(format string, args ...interface{})
- func (l *Logger) GetWriter() io.Writer
- func (l *Logger) Info(format string, args ...interface{})
- func (l *Logger) SetPrefix(prefix string)
- func (l *Logger) Warn(format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debug ¶
func Debug(format string, args ...interface{})
Debug logs a debug message using the default logger
func DisableConsoleOutput ¶
func DisableConsoleOutput()
DisableConsoleOutput disables console output for the default logger
func EnableConsoleOutput ¶
func EnableConsoleOutput()
EnableConsoleOutput enables console output for the default logger
func Error ¶
func Error(format string, args ...interface{})
Error logs an error message using the default logger
func Info ¶
func Info(format string, args ...interface{})
Info logs an info message using the default logger
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger provides structured logging to a file
func InitLogger ¶
InitLogger initializes the default logger If pluginRoot is empty, uses current directory
func (*Logger) DisableConsoleOutput ¶
func (l *Logger) DisableConsoleOutput()
DisableConsoleOutput disables logging to console
func (*Logger) EnableConsoleOutput ¶
func (l *Logger) EnableConsoleOutput()
EnableConsoleOutput enables logging to console (stderr for errors/warnings, stdout for info/debug)
Click to show internal directories.
Click to hide internal directories.