Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultFileFlags = os.O_CREATE | os.O_APPEND | os.O_WRONLY DefaultFileMode os.FileMode = 0o600 DefaultDirMode os.FileMode = 0o700 )
View Source
var NopLogger = nopLogger{} //nolint:gochecknoglobals // nop implementation
NopLogger is a logger that does nothing.
Functions ¶
This section is empty.
Types ¶
type Config ¶
Config is a configuration for the loggers.
func DefaultConfig ¶
func DefaultConfig() *Config
type Logger ¶
type Logger interface {
Errorf(format string, args ...any)
Infof(format string, args ...any)
Debugf(format string, args ...any)
}
Logger is the logger used by the forwarder package.
type RotatableFile ¶ added in v1.3.2
type RotatableFile struct {
// contains filtered or unexported fields
}
func NewRotatableFile ¶ added in v1.3.2
func NewRotatableFile(f *os.File) *RotatableFile
func (*RotatableFile) Close ¶ added in v1.3.2
func (w *RotatableFile) Close() error
func (*RotatableFile) Reopen ¶ added in v1.3.2
func (w *RotatableFile) Reopen() error
Click to show internal directories.
Click to hide internal directories.