logging

package
v0.0.0-...-da9a50a Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2021 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BASIC_FUNCTION       = "2.3.2.1"
	SUCCESS_REGISTRATION = "2.3.2.2.1"
	REJECT_REGISTRATION  = "2.3.2.2.2"
	SUCCESS_RETURN       = "2.3.2.3.1"
	REJECT_RETURN        = "2.3.2.3.2"
	SUCCESS_RENEW        = "2.3.2.4.1"
	REJECT_RENEW         = "2.3.2.4.2"
)

Variables

View Source
var (
	LogFile *log.Logger
)

LogFile is the Logger file

Functions

func CountTotal

func CountTotal(lines []string) (string, error)

CountTotal summarizes data found in the log file TODO: compute useful info.

func Init

func Init(logPath string, cm bool) error

Init inits the log file and opens it

func ReadLogs

func ReadLogs(logPath string) ([]string, error)

ReadLogs reads all logs from the log file

func WriteToFile

func WriteToFile(testID string, status string, result string, remark string)

WriteToFile writes the result of the execution of a function to the 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