Documentation
¶
Index ¶
- func CaptureWebKitLog(message string)
- func Debug(message string)
- func Error(message string)
- func Fatal(message string)
- func Info(message string)
- func Init(logDir string, level string, format string, enableFileLog bool, ...) error
- func Warn(message string)
- type JSONFormatter
- type LogFormatter
- type LogLevel
- type LogRotator
- type Logger
- type OutputCapture
- type TextFormatter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CaptureWebKitLog ¶
func CaptureWebKitLog(message string)
Types ¶
type JSONFormatter ¶
type JSONFormatter struct{}
type LogFormatter ¶
func NewFormatter ¶
func NewFormatter(format string) LogFormatter
type LogLevel ¶
type LogLevel int
func LogLevelInfo ¶
func LogLevelInfo() LogLevel
LogLevelInfo returns the INFO log level constant for external packages
type LogRotator ¶
type LogRotator struct {
// contains filtered or unexported fields
}
func NewLogRotator ¶
func NewLogRotator(baseDir string, maxSizeMB, maxBackups, maxAgeDays int, compress bool) (*LogRotator, error)
func (*LogRotator) Close ¶
func (r *LogRotator) Close() error
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func (*Logger) WriteFileOnly ¶
WriteFileOnly writes a log entry only to the file (not stdout) to avoid interfering with CLI operations
func (*Logger) WriteTagged ¶
type OutputCapture ¶
type OutputCapture struct {
// contains filtered or unexported fields
}
func NewOutputCapture ¶
func NewOutputCapture(logger *Logger) *OutputCapture
func (*OutputCapture) Start ¶
func (c *OutputCapture) Start() error
func (*OutputCapture) Stop ¶
func (c *OutputCapture) Stop()
type TextFormatter ¶
type TextFormatter struct{}
Click to show internal directories.
Click to hide internal directories.