logger

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	ErrorLog  *os.File
	AccessLog *os.File
}

Logger Options

func New

func New(path string) (logger *Logger, err error)

New instance of logger

func (*Logger) Access

func (l *Logger) Access(s string)

Access logs access to file

func (*Logger) Close

func (l *Logger) Close() error

Close log files

func (*Logger) Error

func (l *Logger) Error(e error)

Error logs errors to file

Jump to

Keyboard shortcuts

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