Documentation ¶
Overview ¶
Modified version of lumberjack (https://github.com/natefinch/lumberjack)
Index ¶
- func InitCLIParams()
- func ValidateCLIParams() error
- func WriteToOutputs(src, timestamp string) error
- type TmpWriter
- func (l *TmpWriter) Close() error
- func (l *TmpWriter) CurrentFile() *os.File
- func (l *TmpWriter) DeleteCurrentFile() (err error)
- func (l *TmpWriter) DeletePreviousFile() (err error)
- func (l *TmpWriter) Exit() (err error)
- func (l *TmpWriter) PreviousFile() *os.File
- func (l *TmpWriter) Rotate() error
- func (l *TmpWriter) Size() int64
- func (l *TmpWriter) Write(p []byte) (n int, err error)
- func (l *TmpWriter) WriteString(s string) (n int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitCLIParams ¶
func InitCLIParams()
func ValidateCLIParams ¶
func ValidateCLIParams() error
func WriteToOutputs ¶
Types ¶
type TmpWriter ¶
type TmpWriter struct { WriteCount int // contains filtered or unexported fields }
func (*TmpWriter) CurrentFile ¶
Return current log file pointer
func (*TmpWriter) DeleteCurrentFile ¶
Delete current log file and update struct
func (*TmpWriter) DeletePreviousFile ¶
Delete previous log file and update struct
func (*TmpWriter) PreviousFile ¶
Return previous log file pointer
func (*TmpWriter) Rotate ¶
Rotate causes TmpWriter to close the existing log file and immediately create a new one.
Click to show internal directories.
Click to hide internal directories.