file_logger

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileLogLogger

type FileLogLogger struct {
	// contains filtered or unexported fields
}

func CreateFileLogger

func CreateFileLogger(appName string, options *FileLogOptions) (*FileLogLogger, error)

func (*FileLogLogger) Debug

func (logger *FileLogLogger) Debug(now time.Time, msg string)

Debug ...

func (*FileLogLogger) Error

func (logger *FileLogLogger) Error(now time.Time, msg string)

Error ...

func (*FileLogLogger) Info

func (logger *FileLogLogger) Info(now time.Time, msg string)

Info ...

func (*FileLogLogger) Shutdown

func (logger *FileLogLogger) Shutdown()

func (*FileLogLogger) Warn

func (logger *FileLogLogger) Warn(now time.Time, msg string)

Warn ...

type FileLogOptions

type FileLogOptions struct {
	Directory  string `json:"dir,omitempty"`
	DaysToKeep uint   `json:"daysToKeep,omitempty"`
}

FileLogOptions ...

Jump to

Keyboard shortcuts

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