goflogger

package
v0.0.0-...-40c044f Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Cron *cron.Cron
)

Functions

This section is empty.

Types

type ByteSize

type ByteSize uint64

ByteSize ...

const (
	KB ByteSize = 1 << (10 * iota) // 1 << (10*1)
	MB                             // 1 << (10*2)
	GB                             // 1 << (10*3)
	TB                             // 1 << (10*4)

)

kb,mb,gb

type File

type File struct {
	Logger *Logger
	// contains filtered or unexported fields
}

File ...

func GetFile

func GetFile(fName string) *File

GetFile ...

func (*File) GetFile

func (fl *File) GetFile() *os.File

GetFile ...

func (*File) GetLogger

func (fl *File) GetLogger() *Logger

GetLogger ...

func (*File) Reload

func (fl *File) Reload()

Reload reload file pointer

type Logger

type Logger struct {
	*logrus.Logger
}

Logger ...

Jump to

Keyboard shortcuts

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