tracelog

package
v0.0.0-...-2f59249 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2013 License: BSD-2-Clause-Views Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EmailHost         string // Host address to the email server
	EmailPort         int    // Host port to the email
	EmailUserName     string // The email user for authentication
	EmailPassword     string // The password for authentication
	EmailTo           string // Address to send messages
	EmailAlertSubject string // The subject for email alerts
)
View Source
var (
	Serialize sync.Mutex
)

Functions

func ALERT

func ALERT(subject string, routineName string, functionName string, format string, a ...interface{})

ALERT write to the ERROR destination and sends email alert

func COMPLETED

func COMPLETED(routineName string, functionName string)

func COMPLETED_ALERT

func COMPLETED_ALERT(subject string, routineName string, functionName string, format string, a ...interface{})

COMPLETED_ALERT write to the ERROR destination, writes a Completed tag to the log line and sends email alert

func COMPLETED_ERROR

func COMPLETED_ERROR(err error, routineName string, functionName string)

func COMPLETED_ERRORf

func COMPLETED_ERRORf(err error, routineName string, functionName string, format string, a ...interface{})

func COMPLETEDf

func COMPLETEDf(routineName string, functionName string, format string, a ...interface{})

func ERROR

func ERROR(err error, routineName string, functionName string)

func ERRORf

func ERRORf(err error, routineName string, functionName string, format string, a ...interface{})

func INFO

func INFO(routineName string, functionName string, format string, a ...interface{})

func STARTED

func STARTED(routineName string, functionName string)

func STARTEDf

func STARTEDf(routineName string, functionName string, format string, a ...interface{})

func SendEmail

func SendEmail(sessionId string, subject string, message string) (err error)

SendEmail will send an email

func SendProblemEmail

func SendProblemEmail(sessionId string, subject string, problems []string) (err error)

SendProblemEmail sends an email with the slice of problems

func TRACE

func TRACE(routineName string, functionName string, format string, a ...interface{})

func WARN

func WARN(routineName string, functionName string, format string, a ...interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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