Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NewLine string
Functions ¶
This section is empty.
Types ¶
type CLI ¶
type CLI struct {
// contains filtered or unexported fields
}
CLI is a concurrent output writer to terminal.
type FileWithRotation ¶ added in v1.1.5
type FileWithRotation struct {
// contains filtered or unexported fields
}
FileWithRotation is a concurrent output writer to a file with rotation.
func NewFileWithRotation ¶ added in v1.1.5
func NewFileWithRotation(options *FileWithRotationOptions) (*FileWithRotation, error)
NewFileWithRotation returns a new file concurrent log writer.
func (*FileWithRotation) Close ¶ added in v1.1.5
func (w *FileWithRotation) Close()
Close and flushes the logger
func (*FileWithRotation) CreateFile ¶ added in v1.1.5
func (w *FileWithRotation) CreateFile(filename string) (*os.File, error)
type FileWithRotationOptions ¶ added in v1.1.5
type FileWithRotationOptions struct {
Location string
Rotate bool
RotationInterval time.Duration
FileName string
Compress bool
MaxSize int
BackupTimeFormat string
ArchiveFormat archives.Compression
// Helpers
RotateEachHour bool
RotateEachDay bool
// contains filtered or unexported fields
}
var DefaultFileWithRotationOptions FileWithRotationOptions
Click to show internal directories.
Click to hide internal directories.