logger

package
v0.8.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

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

LogRecordFormat is format to log line record.

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

LogRecordTimeLayout is layout for convert time.Now to String.

Variables

This section is empty.

Functions

func AddLog

func AddLog(logName string, address string, request string, response string) error

AddLog saves request and response to log file.

func GetLogFile

func GetLogFile(logName string) (*os.File, error)

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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