outputs

package
v1.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2020 License: MIT Imports: 30 Imported by: 2

Documentation

Overview

Modified version of lumberjack (https://github.com/natefinch/lumberjack)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitCLIParams

func InitCLIParams()

func ValidateCLIParams

func ValidateCLIParams() error

func WriteToOutputs

func WriteToOutputs(src, timestamp string) error

Types

type TmpWriter

type TmpWriter struct {
	WriteCount int
	// contains filtered or unexported fields
}

func (*TmpWriter) Close added in v1.5.0

func (l *TmpWriter) Close() error

Close implements io.Closer, and closes the current logfile.

func (*TmpWriter) CurrentFile added in v1.8.0

func (l *TmpWriter) CurrentFile() *os.File

Return current log file pointer

func (*TmpWriter) DeleteCurrentFile added in v1.8.0

func (l *TmpWriter) DeleteCurrentFile() (err error)

Delete current log file and update struct

func (*TmpWriter) DeletePreviousFile added in v1.8.0

func (l *TmpWriter) DeletePreviousFile() (err error)

Delete previous log file and update struct

func (*TmpWriter) Exit added in v1.8.0

func (l *TmpWriter) Exit() (err error)

Close open file and cleanup any current or previous log files

func (*TmpWriter) PreviousFile added in v1.8.0

func (l *TmpWriter) PreviousFile() *os.File

Return previous log file pointer

func (*TmpWriter) Rotate

func (l *TmpWriter) Rotate() error

Rotate causes TmpWriter to close the existing log file and immediately create a new one.

func (*TmpWriter) Size added in v1.8.0

func (l *TmpWriter) Size() int64

Returns current file size

func (*TmpWriter) Write added in v1.8.0

func (l *TmpWriter) Write(p []byte) (n int, err error)

Write implements io.Writer.

func (*TmpWriter) WriteString added in v1.8.0

func (l *TmpWriter) WriteString(s string) (n int, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL