logger

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultLineFormat = "[%s] %s: %s\n%s\n\n"

DefaultLineFormat is format to log line record.

View Source
const DefaultTimeLayout = "2006-01-02 15:04:05"

DefaultTimeLayout is layout for convert time.Now to String.

Variables

View Source
var ErrEmptyFileName = errors.New("empty file name")

ErrEmptyFileName is returned when trying to open file with empty name.

Functions

func OpenFile added in v0.9.0

func OpenFile(name string) (*os.File, error)

OpenFile opens file for append strings. Creates file if file not exist.

func Write added in v0.9.0

func Write(name string, address string, request string, response string) error

Write saves request and response to log file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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